adaptivedemux: check the return from update_manifest correctly
It is a GstFlowReturn and not a boolean
This commit is contained in:
parent
1c0c6b6f48
commit
c8fa688d26
@ -1943,7 +1943,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||||||
if (stream->download_error_count == 1 && !is_live) {
|
if (stream->download_error_count == 1 && !is_live) {
|
||||||
/* TODO hlsdemux had more options to this function (boolean and err) */
|
/* TODO hlsdemux had more options to this function (boolean and err) */
|
||||||
GST_MANIFEST_UNLOCK (demux);
|
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 */
|
/* Retry immediately, the playlist actually has changed */
|
||||||
GST_DEBUG_OBJECT (demux, "Updated the playlist");
|
GST_DEBUG_OBJECT (demux, "Updated the playlist");
|
||||||
return;
|
return;
|
||||||
@ -1968,7 +1968,8 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||||||
GST_DEBUG_OBJECT (demux, "Retrying now");
|
GST_DEBUG_OBJECT (demux, "Retrying now");
|
||||||
|
|
||||||
/* Refetch the playlist now after we waited */
|
/* 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");
|
GST_DEBUG_OBJECT (demux, "Updated the playlist");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user