diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-04-13 14:51:07 +0300 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-05-18 19:04:57 +0200 |
commit | 927c158303315ee229b0ebc429c7c115bbd88711 (patch) | |
tree | ff7ec4c1b16d5bf247f9bdaa8e2647fcb4edf8c5 /ext/dash | |
parent | e2a6573c7d5f274e2c0d17e2612100e9582975c5 (diff) | |
download | gstreamer-plugins-bad-927c158303315ee229b0ebc429c7c115bbd88711.tar.gz |
dashdemux: Reset previous target_time when seeking
Diffstat (limited to 'ext/dash')
-rw-r--r-- | ext/dash/gstdashdemux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index a3f4c0e84..f1eaf0643 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1477,6 +1477,7 @@ gst_dash_demux_stream_seek (GstAdaptiveDemuxStream * stream, gboolean forward, g_array_free (dashstream->moof_sync_samples, TRUE); dashstream->moof_sync_samples = NULL; dashstream->current_sync_sample = -1; + dashstream->target_time = GST_CLOCK_TIME_NONE; is_isobmff = gst_mpd_client_has_isoff_ondemand_profile (dashdemux->client); @@ -2109,8 +2110,9 @@ gst_dash_demux_stream_advance_fragment (GstAdaptiveDemuxStream * stream) } GST_DEBUG_OBJECT (stream->pad, - "Skipped to %" GST_TIME_FORMAT " (wanted %" GST_TIME_FORMAT ")", - GST_TIME_ARGS (actual_ts), GST_TIME_ARGS (target_time)); + "Skipped to %" GST_TIME_FORMAT " (wanted %" GST_TIME_FORMAT ", was %" + GST_TIME_FORMAT ")", GST_TIME_ARGS (actual_ts), + GST_TIME_ARGS (target_time), GST_TIME_ARGS (previous_position)); if ((stream->segment.rate > 0 && actual_ts < previous_position) || (stream->segment.rate < 0 && actual_ts > previous_position)) { |