From: Tim-Philipp Müller Date: Tue, 19 Oct 2010 22:25:54 +0000 (+0100) Subject: dcaparse: init variable to make osx build bot happy X-Git-Tag: RELEASE-0.10.29~317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3018bdf8de1e3e51109dcba3fc5ecd3461afde90;p=platform%2Fupstream%2Fgst-plugins-good.git dcaparse: init variable to make osx build bot happy gstdcaparse.c: In function 'gst_dca_parse_check_valid_frame': gstdcaparse.c:246: warning: 'best_sync' may be used uninitialized in this function --- diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c index f46484e..c99c402 100644 --- a/gst/audioparsers/gstdcaparse.c +++ b/gst/audioparsers/gstdcaparse.c @@ -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;