summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-09-04 18:21:38 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-09-04 18:21:38 +0300
commitbda4eae1cc0258a918c4ba039f84b29ead0eb049 (patch)
tree3a20571b4eb0d499f61904ad59979bec4b71f490
parent51a9e13bf23940b9463e27a3d279ee21eb5a9bc1 (diff)
mssdemux: Don't send flush events to deactivated pads
https://bugzilla.gnome.org/show_bug.cgi?id=736012
-rw-r--r--ext/smoothstreaming/gstmssdemux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c
index d76654ed4..428618015 100644
--- a/ext/smoothstreaming/gstmssdemux.c
+++ b/ext/smoothstreaming/gstmssdemux.c
@@ -1344,10 +1344,6 @@ gst_mss_demux_stream_download_uri (GstMssDemux * demux,
}
if (G_LIKELY (stream->last_ret == GST_FLOW_OK)) {
- /* flush the proxypads so that the EOS state is reset */
- gst_pad_push_event (stream->src_srcpad, gst_event_new_flush_start ());
- gst_pad_push_event (stream->src_srcpad, gst_event_new_flush_stop (TRUE));
-
stream->download_start_time = g_get_monotonic_time ();
gst_element_sync_state_with_parent (stream->src);
@@ -1361,6 +1357,10 @@ gst_mss_demux_stream_download_uri (GstMssDemux * demux,
stream->last_ret = GST_FLOW_CUSTOM_ERROR;
}
+ /* flush the proxypads so that the EOS state is reset */
+ gst_pad_push_event (stream->src_srcpad, gst_event_new_flush_start ());
+ gst_pad_push_event (stream->src_srcpad, gst_event_new_flush_stop (TRUE));
+
gst_element_set_state (stream->src, GST_STATE_READY);
}