mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
hlsdemux: Don't send flush events to deactivated pads
https://bugzilla.gnome.org/show_bug.cgi?id=736012
This commit is contained in:
parent
ea555c6595
commit
f6c6d9c280
1 changed files with 4 additions and 4 deletions
|
@ -2090,10 +2090,6 @@ gst_hls_demux_get_next_fragment (GstHLSDemux * demux,
|
|||
}
|
||||
|
||||
if (G_LIKELY (demux->last_ret == GST_FLOW_OK)) {
|
||||
/* flush the proxypads so that the EOS state is reset */
|
||||
gst_pad_push_event (demux->src_srcpad, gst_event_new_flush_start ());
|
||||
gst_pad_push_event (demux->src_srcpad, gst_event_new_flush_stop (TRUE));
|
||||
|
||||
demux->download_start_time = g_get_monotonic_time ();
|
||||
download_start_time = gst_util_get_timestamp ();
|
||||
gst_element_sync_state_with_parent (demux->src);
|
||||
|
@ -2109,6 +2105,10 @@ gst_hls_demux_get_next_fragment (GstHLSDemux * demux,
|
|||
}
|
||||
g_mutex_unlock (&demux->fragment_download_lock);
|
||||
|
||||
/* flush the proxypads so that the EOS state is reset */
|
||||
gst_pad_push_event (demux->src_srcpad, gst_event_new_flush_start ());
|
||||
gst_pad_push_event (demux->src_srcpad, gst_event_new_flush_stop (TRUE));
|
||||
|
||||
if (demux->last_ret != GST_FLOW_OK) {
|
||||
gst_element_set_state (demux->src, GST_STATE_NULL);
|
||||
if (*err == NULL) {
|
||||
|
|
Loading…
Reference in a new issue