summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-05-30 15:27:37 +0200
committerEdward Hervey <bilboed@bilboed.com>2017-07-13 08:30:50 +0200
commitf55356e4b31cdc111d12c86069a9a67ec57f505a (patch)
tree4cba34b9e112d6c2e86e3c370a06e00f3ac4f1bf /ext
parentb808c53b3024ae510d2c07b5d852bf326eb77705 (diff)
downloadgstreamer-plugins-bad-f55356e4b31cdc111d12c86069a9a67ec57f505a.tar.gz
dashdemux: Implement a default presentation delay
Have a fallback presentation delay is great (if not present in the manifest), having an actual default value is better. https://bugzilla.gnome.org/show_bug.cgi?id=783244
Diffstat (limited to 'ext')
-rw-r--r--ext/dash/gstdashdemux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index 839a0b37b..83bcb0302 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -205,7 +205,7 @@ enum
#define DEFAULT_MAX_VIDEO_HEIGHT 0
#define DEFAULT_MAX_VIDEO_FRAMERATE_N 0
#define DEFAULT_MAX_VIDEO_FRAMERATE_D 1
-#define DEFAULT_PRESENTATION_DELAY NULL /* zero */
+#define DEFAULT_PRESENTATION_DELAY "10s" /* 10s */
/* Clock drift compensation for live streams */
#define SLOW_CLOCK_UPDATE_INTERVAL (1000000 * 30 * 60) /* 30 minutes */
@@ -530,7 +530,7 @@ gst_dash_demux_init (GstDashDemux * demux)
demux->max_video_height = DEFAULT_MAX_VIDEO_HEIGHT;
demux->max_video_framerate_n = DEFAULT_MAX_VIDEO_FRAMERATE_N;
demux->max_video_framerate_d = DEFAULT_MAX_VIDEO_FRAMERATE_D;
- demux->default_presentation_delay = DEFAULT_PRESENTATION_DELAY;
+ demux->default_presentation_delay = g_strdup (DEFAULT_PRESENTATION_DELAY);
g_mutex_init (&demux->client_lock);