mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
bitwriter: Fix inclusion of header in C++ code
../subprojects/gstreamer/libs/gst/base/gstbitwriter.h: In function 'gboolean _gst_bit_writer_check_remaining(GstBitWriter*, guint32)': ../subprojects/gstreamer/libs/gst/base/gstbitwriter.h:161:31: error: invalid conversion from 'gpointer' {aka 'void*'} to 'guint8*' {aka 'unsigned char*'} [-fpermissive] bitwriter->data = g_realloc (bitwriter->data, (new_bit_size >> 3)); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
e823f02b5a
commit
f57e79a073
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ _gst_bit_writer_check_remaining (GstBitWriter * bitwriter, guint32 bits)
|
|||
g_assert (new_bit_size
|
||||
&& ((new_bit_size & __GST_BITS_WRITER_ALIGNMENT_MASK) == 0));
|
||||
clear_pos = ((bitwriter->bit_size + 7) >> 3);
|
||||
bitwriter->data = g_realloc (bitwriter->data, (new_bit_size >> 3));
|
||||
bitwriter->data = (guint8 *) g_realloc (bitwriter->data, (new_bit_size >> 3));
|
||||
memset (bitwriter->data + clear_pos, 0, (new_bit_size >> 3) - clear_pos);
|
||||
bitwriter->bit_capacity = new_bit_size;
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue