summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-09-07 12:46:08 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-09-07 12:55:38 +0100
commitcafb914f5d9ff828b89bec01d1c6c797fee48245 (patch)
tree0257455faad17ef7ba597b364b198f2c6119d1a8
parent241a634570a9905fa380636472c11b7274452aef (diff)
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
-rw-r--r--gst/avi/gstavidemux.c2
1 files changed, 1 insertions, 1 deletions
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;