avidemux: Don't seek on empty streams

This commit is contained in:
Edward Hervey 2009-10-18 16:02:01 +02:00
parent a6ed612f42
commit 6e849f84fc

View file

@ -3484,7 +3484,7 @@ gst_avi_demux_do_seek (GstAviDemux * avi, GstSegment * segment)
GstAviStream *ostream;
ostream = &avi->stream[i];
if (ostream == stream)
if ((ostream == stream) || (ostream->index == NULL))
continue;
/* get the entry index for the requested position */