summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-01 15:56:55 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-01 16:18:37 +0200
commit126891e9a5cc08d8bcd3abe877716f4cdfa5b168 (patch)
treeef2853fda52940b55ace91c25e912c1163feacc3
parent0d5dcba778d4bdb6c236961d93c35ff51049d638 (diff)
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.
-rw-r--r--ext/hls/gsthlsdemux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c
index ed23d11a9..28b416d42 100644
--- a/ext/hls/gsthlsdemux.c
+++ b/ext/hls/gsthlsdemux.c
@@ -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,