mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
dashdemux: do not override last known stream error
https://bugzilla.gnome.org/show_bug.cgi?id=736141
This commit is contained in:
parent
613b110b25
commit
1d733eacf7
1 changed files with 5 additions and 2 deletions
|
@ -431,6 +431,7 @@ gst_dash_demux_handle_message (GstBin * bin, GstMessage * msg)
|
||||||
/* error, but ask to retry */
|
/* error, but ask to retry */
|
||||||
g_mutex_lock (&stream->fragment_download_lock);
|
g_mutex_lock (&stream->fragment_download_lock);
|
||||||
if (!stream->download_finished) {
|
if (!stream->download_finished) {
|
||||||
|
if (stream->last_ret == GST_FLOW_OK)
|
||||||
stream->last_ret = GST_FLOW_CUSTOM_ERROR;
|
stream->last_ret = GST_FLOW_CUSTOM_ERROR;
|
||||||
stream->download_finished = TRUE;
|
stream->download_finished = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -2288,7 +2289,9 @@ gst_dash_demux_stream_download_uri (GstDashDemux * demux,
|
||||||
g_mutex_unlock (&stream->fragment_download_lock);
|
g_mutex_unlock (&stream->fragment_download_lock);
|
||||||
} else {
|
} else {
|
||||||
g_mutex_lock (&stream->fragment_download_lock);
|
g_mutex_lock (&stream->fragment_download_lock);
|
||||||
ret = stream->last_ret = GST_FLOW_CUSTOM_ERROR;
|
if (stream->last_ret == GST_FLOW_OK)
|
||||||
|
stream->last_ret = GST_FLOW_CUSTOM_ERROR;
|
||||||
|
ret = stream->last_ret;
|
||||||
g_mutex_unlock (&stream->fragment_download_lock);
|
g_mutex_unlock (&stream->fragment_download_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue