From f94ea7299ab05a39bb399d446b6b806a130d94e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 28 Jul 2011 00:37:13 +0100 Subject: [PATCH] avidemux: fix compiler warning gstavidemux.c: In function 'gst_avi_demux_parse_stream': gstavidemux.c:1261:24: error: 'data' may be used uninitialized in this function [-Werror=uninitialized] gstavidemux.c:1204:11: note: 'data' was declared here --- gst/avi/gstavidemux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index d893b26..f6de29d 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -1209,10 +1209,12 @@ gst_avi_demux_parse_superindex (GstAviDemux * avi, *_indexes = NULL; - if (buf) + if (buf) { data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ); - else + } else { + data = NULL; size = 0; + } if (size < 24) goto too_small; -- 2.7.4