dashdemux: initialise demux->last_manifest_update
authorChris Bass <floobleflam@gmail.com>
Tue, 18 Feb 2014 10:19:52 +0000 (10:19 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 20 Feb 2014 19:26:25 +0000 (20:26 +0100)
demux->last_manifest_update is not initialised at startup, with the
effect that live manifests are reloaded immediately after the download
loop begins. This patch fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=724790

ext/dash/gstdashdemux.c

index 7d2e3d735c64e6be65bf5d62e418f644a1a1b502..f79ec59a7c816534c9cb9f1bcc2e6907b2f7a7db 100644 (file)
@@ -321,6 +321,7 @@ gst_dash_demux_init (GstDashDemux * demux)
   demux->max_buffering_time = DEFAULT_MAX_BUFFERING_TIME * GST_SECOND;
   demux->bandwidth_usage = DEFAULT_BANDWIDTH_USAGE;
   demux->max_bitrate = DEFAULT_MAX_BITRATE;
+  demux->last_manifest_update = GST_CLOCK_TIME_NONE;
 
   g_mutex_init (&demux->client_lock);
 }