From 7271ff253bc982d360c8a644ddbffcd91fc683d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 7 Sep 2014 12:46:08 +0100 Subject: [PATCH] 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 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; -- 2.7.4