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;
|
delete[] self->prior_buffer;
|
||||||
self->prior_buffer = nullptr;
|
self->prior_buffer = nullptr;
|
||||||
}
|
}
|
||||||
*out_buffer = buffer;
|
*out_buffer = (const uint8_t *)buffer;
|
||||||
*width = g_atomic_int_get(&self->video_width);
|
*width = g_atomic_int_get(&self->video_width);
|
||||||
*height = g_atomic_int_get(&self->video_height);
|
*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_atomic_int_set(&self->buffer_ready, FALSE);
|
||||||
g_mutex_unlock(&self->mutex);
|
g_mutex_unlock(&self->mutex);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue