From: Tim-Philipp Müller Date: Sun, 7 Sep 2014 11:46:08 +0000 (+0100) Subject: avidemux: fix crash with certain videos X-Git-Tag: 1.6.0~941 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7271ff253bc982d360c8a644ddbffcd91fc683d7;p=platform%2Fupstream%2Fgst-plugins-good.git 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 --- diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 23e1437..4345127 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;