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
This commit is contained in:
Tim-Philipp Müller 2014-09-07 12:46:08 +01:00
parent a3a5530518
commit 7271ff253b

View 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;