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
This commit is contained in:
Tim-Philipp Müller 2011-07-28 00:37:13 +01:00
parent 63fc64dd98
commit f94ea7299a

View file

@ -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;