fix compile err (#5)
texture_rgba_renderer.h:86:19: error: assigning to 'const uint8_t *' (aka 'const unsigned char *') from incompatible type 'void *'
This commit is contained in:
parent
8208587b23
commit
11cf53bac6
1 changed files with 3 additions and 3 deletions
|
|
@ -86,10 +86,10 @@ static gboolean texture_rgba_copy_pixels(FlPixelBufferTexture* texture,
|
|||
delete[] self->prior_buffer;
|
||||
self->prior_buffer = nullptr;
|
||||
}
|
||||
*out_buffer = buffer;
|
||||
*out_buffer = (const uint8_t *)buffer;
|
||||
*width = g_atomic_int_get(&self->video_width);
|
||||
*height = g_atomic_int_get(&self->video_height);
|
||||
self->prior_buffer = buffer;
|
||||
self->prior_buffer = (uint8_t *)buffer;
|
||||
g_atomic_int_set(&self->buffer_ready, FALSE);
|
||||
g_mutex_unlock(&self->mutex);
|
||||
return TRUE;
|
||||
|
|
@ -158,4 +158,4 @@ static void texture_rgba_init(TextureRgba* self) {
|
|||
}
|
||||
|
||||
G_END_DECLS
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue