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:
Chieh Wang 2023-03-01 08:53:00 +08:00 • committed by GitHub
parent 8208587b23
commit 11cf53bac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;