bitreader: Fix uninitialized variable compiler warnings

gcc doesn't notice that the check assertion macros will abort
further execution of the tests.
This commit is contained in:
Sebastian Dröge 2010-10-03 23:41:26 +02:00
parent f758e465c8
commit f17efc49c6

View file

@ -45,7 +45,7 @@ GST_START_TEST (test_initialization)
GstBuffer *buffer = gst_buffer_new (); GstBuffer *buffer = gst_buffer_new ();
GstBitReader reader = GST_BIT_READER_INIT (data, 4); GstBitReader reader = GST_BIT_READER_INIT (data, 4);
GstBitReader *reader2; GstBitReader *reader2;
guint8 x; guint8 x = 0;
GST_BUFFER_DATA (buffer) = data; GST_BUFFER_DATA (buffer) = data;
GST_BUFFER_SIZE (buffer) = 4; GST_BUFFER_SIZE (buffer) = 4;
@ -197,7 +197,7 @@ GST_START_TEST (test_position_tracking)
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
}; };
GstBitReader reader = GST_BIT_READER_INIT (data, 16); GstBitReader reader = GST_BIT_READER_INIT (data, 16);
guint8 a; guint8 a = 0;
fail_unless_equals_int (gst_bit_reader_get_pos (&reader), 0); fail_unless_equals_int (gst_bit_reader_get_pos (&reader), 0);
fail_unless_equals_int (gst_bit_reader_get_remaining (&reader), 16 * 8); fail_unless_equals_int (gst_bit_reader_get_remaining (&reader), 16 * 8);