From cafb914f5d9ff828b89bec01d1c6c797fee48245 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Sun, 7 Sep 2014 12:46:08 +0100 Subject: avidemux: fix crash with certain videos 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 23e1437cd..4345127f4 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -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; -- cgit v1.2.3