avidemux: Don't seek on empty streams
authorEdward Hervey <bilboed@bilboed.com>
Sun, 18 Oct 2009 14:02:01 +0000 (16:02 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 18 Oct 2009 14:16:43 +0000 (16:16 +0200)
gst/avi/gstavidemux.c

index 5ce5bc2..d842596 100644 (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 */