From 94ff8fbb819010704ea77b6533b8ce1ecaf20d21 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 9 Nov 2003 13:43:54 +0000 Subject: [PATCH] Two workarounds added for gcc-2.9x compatibility. The warnigns are wrong, because these variables will logically neve... 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 60351a5..1089c09 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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) { -- 2.7.4