mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
hlsdemux: Reset the last flow return before restarting the internal source
Otherwise we will never recover from previous errors, and especially will never start again after a flushing seek if downstream returned GST_FLOW_FLUSHING to us.
This commit is contained in:
parent
0d5dcba778
commit
126891e9a5
1 changed files with 3 additions and 0 deletions
|
@ -1898,6 +1898,9 @@ gst_hls_demux_get_next_fragment (GstHLSDemux * demux,
|
||||||
demux->current_key = key;
|
demux->current_key = key;
|
||||||
demux->current_iv = iv;
|
demux->current_iv = iv;
|
||||||
|
|
||||||
|
/* Reset last flow return */
|
||||||
|
demux->last_ret = GST_FLOW_OK;
|
||||||
|
|
||||||
if (!gst_hls_demux_update_source (demux, next_fragment_uri,
|
if (!gst_hls_demux_update_source (demux, next_fragment_uri,
|
||||||
demux->client->main ? demux->client->main->uri : NULL)) {
|
demux->client->main ? demux->client->main->uri : NULL)) {
|
||||||
*err = g_error_new (GST_CORE_ERROR, GST_CORE_ERROR_MISSING_PLUGIN,
|
*err = g_error_new (GST_CORE_ERROR, GST_CORE_ERROR_MISSING_PLUGIN,
|
||||||
|
|
Loading…
Reference in a new issue