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
This commit is contained in:
Matthew Waters 2016-11-09 21:20:21 +11:00
parent 6d50a9e8a8
commit 28396d348f

View file

@ -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;