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:
Sebastian Dröge 2014-05-01 15:56:55 +02:00
parent 0d5dcba778
commit 126891e9a5

View file

@ -1898,6 +1898,9 @@ gst_hls_demux_get_next_fragment (GstHLSDemux * demux,
demux->current_key = key;
demux->current_iv = iv;
/* Reset last flow return */
demux->last_ret = GST_FLOW_OK;
if (!gst_hls_demux_update_source (demux, next_fragment_uri,
demux->client->main ? demux->client->main->uri : NULL)) {
*err = g_error_new (GST_CORE_ERROR, GST_CORE_ERROR_MISSING_PLUGIN,