avidemux: fix crash with certain videos
authorTim-Philipp Müller <tim@centricular.com>
Sun, 7 Sep 2014 11:46:08 +0000 (12:46 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 7 Sep 2014 11:48:16 +0000 (12:48 +0100)
This is a regression from 1.2 caused by the port
to the pad flow combiner.

https://bugzilla.gnome.org/show_bug.cgi?id=736192

gst/avi/gstavidemux.c

index 23e1437..4345127 100644 (file)
@@ -5107,7 +5107,7 @@ gst_avi_demux_find_next (GstAviDemux * avi, gfloat rate)
     stream = &avi->stream[i];
 
     /* ignore streams that finished */
-    if (GST_PAD_LAST_FLOW_RETURN (stream->pad) == GST_FLOW_EOS)
+    if (stream->pad && GST_PAD_LAST_FLOW_RETURN (stream->pad) == GST_FLOW_EOS)
       continue;
 
     position = stream->current_timestamp;