Two workarounds added for gcc-2.9x compatibility. The warnigns are wrong, because...
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 9 Nov 2003 13:43:54 +0000 (13:43 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 9 Nov 2003 13:43:54 +0000 (13:43 +0000)
Original commit message from CVS:
Two workarounds added for gcc-2.9x compatibility. The warnigns are wrong, because these variables will logically never be used without being initialized, but it complains nevertheless so we should fix it.

gst/typefind/gsttypefindfunctions.c

index 60351a5..1089c09 100644 (file)
@@ -387,7 +387,7 @@ mp3_type_find (GstTypeFind *tf, gpointer unused)
       size = GST_MP3_TYPEFIND_SYNC_SIZE;
     }
     if (*data == 0xFF) {
-      guint8* head_data;
+      guint8* head_data = NULL;
       guint layer, bitrate, samplerate, channels;
       guint found = 0; /* number of valid headers found */
       guint64 offset = skipped;
@@ -581,7 +581,7 @@ mpeg1_sys_type_find (GstTypeFind *tf, gpointer unused)
     if (IS_MPEG_HEADER (data)) {
       /* found packet start code */
       guint found = 0;
-      guint packet_size;
+      guint packet_size = 0;
       guint64 offset = skipped;
       
       while (found < GST_MPEG_TYPEFIND_TRY_HEADERS) {