tests: mpeg2dec: initialize variable
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 6 Sep 2012 12:42:51 +0000 (14:42 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 6 Sep 2012 12:42:51 +0000 (14:42 +0200)
... which avoids test segfaulting.

tests/check/elements/mpeg2dec.c

index 6e928b2..1e318cc 100644 (file)
@@ -1821,7 +1821,7 @@ GST_START_TEST (test_decode_stream2)
   int i, num_buffers;
   GstCaps *out_caps;
   GstCaps *caps;
-  guint offset;
+  guint offset = 0;
 
   mpeg2dec = setup_mpeg2dec ();