summaryrefslogtreecommitdiff
path: root/gst-libs/gst/adaptivedemux
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-11-09 21:20:21 +1100
committerMatthew Waters <matthew@centricular.com>2016-11-11 00:11:25 +1100
commit28396d348fa05747559cbdd778eeb1896aee2c6a (patch)
treef57648c303247bbfaa04afbd2ea7956f2a6cd3a6 /gst-libs/gst/adaptivedemux
parent6d50a9e8a86e9154c8c6116db9c7dc0860a4691d (diff)
downloadgstreamer-plugins-bad-28396d348fa05747559cbdd778eeb1896aee2c6a.tar.gz
adaptivedemux: reset the manifest failure count after a successful retrieval
This changes the failure case to require a consecutive number of failures rather than being spread out over the entire stream. Fixes the case where fetching the manifest was intermittent. https://bugzilla.gnome.org/show_bug.cgi?id=774177
Diffstat (limited to 'gst-libs/gst/adaptivedemux')
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
index 734e05993..98f5f85d7 100644
--- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
+++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
@@ -3562,6 +3562,7 @@ gst_adaptive_demux_updates_loop (GstAdaptiveDemux * demux)
}
} else {
GST_DEBUG_OBJECT (demux, "Updated playlist successfully");
+ demux->priv->update_failed_count = 0;
next_update =
gst_adaptive_demux_get_monotonic_time (demux) +
klass->get_manifest_update_interval (demux) * GST_USECOND;