From 1d733eacf79b46cfc1dd7f22219f726ad49a7283 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Fri, 5 Sep 2014 17:57:47 +0200 Subject: [PATCH] dashdemux: do not override last known stream error https://bugzilla.gnome.org/show_bug.cgi?id=736141 --- ext/dash/gstdashdemux.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 36b8802eb6..eba49e1465 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -431,7 +431,8 @@ gst_dash_demux_handle_message (GstBin * bin, GstMessage * msg) /* error, but ask to retry */ g_mutex_lock (&stream->fragment_download_lock); if (!stream->download_finished) { - stream->last_ret = GST_FLOW_CUSTOM_ERROR; + if (stream->last_ret == GST_FLOW_OK) + stream->last_ret = GST_FLOW_CUSTOM_ERROR; stream->download_finished = TRUE; } g_cond_signal (&stream->fragment_download_cond); @@ -2288,7 +2289,9 @@ gst_dash_demux_stream_download_uri (GstDashDemux * demux, g_mutex_unlock (&stream->fragment_download_lock); } else { 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); }