From c8fa688d26e2482419b1d785b0d4537d4235f267 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 10 Dec 2014 18:23:02 -0300 Subject: [PATCH] adaptivedemux: check the return from update_manifest correctly It is a GstFlowReturn and not a boolean --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index aa9bf99a8e..fcd1614f49 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1943,7 +1943,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream) if (stream->download_error_count == 1 && !is_live) { /* TODO hlsdemux had more options to this function (boolean and err) */ GST_MANIFEST_UNLOCK (demux); - if (gst_adaptive_demux_update_manifest (demux)) { + if (gst_adaptive_demux_update_manifest (demux) == GST_FLOW_OK) { /* Retry immediately, the playlist actually has changed */ GST_DEBUG_OBJECT (demux, "Updated the playlist"); return; @@ -1968,7 +1968,8 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream) GST_DEBUG_OBJECT (demux, "Retrying now"); /* Refetch the playlist now after we waited */ - if (!is_live && gst_adaptive_demux_update_manifest (demux)) { + if (!is_live + && gst_adaptive_demux_update_manifest (demux) == GST_FLOW_OK) { GST_DEBUG_OBJECT (demux, "Updated the playlist"); } return;