dcaparse: init variable to make osx build bot happy
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 19 Oct 2010 22:25:54 +0000 (23:25 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:07:11 +0000 (18:07 +0100)
gstdcaparse.c: In function 'gst_dca_parse_check_valid_frame':
gstdcaparse.c:246: warning: 'best_sync' may be used uninitialized in this function

gst/audioparsers/gstdcaparse.c

index f46484e..c99c402 100644 (file)
@@ -243,7 +243,7 @@ static gint
 gst_dca_parse_find_sync (GstDcaParse * dcaparse, GstByteReader * reader,
     const GstBuffer * buf, guint32 * sync)
 {
-  guint32 best_sync;
+  guint32 best_sync = 0;
   guint best_offset = G_MAXUINT;
   gint off;