adaptivedemux: reset the manifest failure count after a successful retrieval
authorMatthew Waters <matthew@centricular.com>
Wed, 9 Nov 2016 10:20:21 +0000 (21:20 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 10 Nov 2016 13:11:25 +0000 (00:11 +1100)
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

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

index 734e059..98f5f85 100644 (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;