diff options
author | Edward Hervey <edward@centricular.com> | 2017-05-30 15:27:37 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-06-01 15:27:07 +0200 |
commit | 2b401de91c26924a0aa8e7d36f2f16eed2dad47d (patch) | |
tree | 8d19027e9ed169431786259986b767ce014fe046 /ext/dash | |
parent | 5a693fdd9dc1e7e227309424503e3e0e78f9e9c0 (diff) | |
download | gstreamer-plugins-bad-2b401de91c26924a0aa8e7d36f2f16eed2dad47d.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/dash')
-rw-r--r-- | ext/dash/gstdashdemux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index bc4593c19..0131df2ba 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -338,7 +338,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 */ @@ -663,7 +663,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); |