summaryrefslogtreecommitdiff
path: root/ext/hls/gsthlsdemux.c
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-12-18 11:56:17 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-12-18 18:52:03 -0300
commit29de588e2fe14be39db01e4841d1ea95c94a551a (patch)
tree94862190c2c983ce8749be24ce811ce186fe8df9 /ext/hls/gsthlsdemux.c
parent937e249b4453bae1da7f2a2f84c9db579fedd002 (diff)
downloadgstreamer-plugins-bad-29de588e2fe14be39db01e4841d1ea95c94a551a.tar.gz
hlsdemux: always set timestamp on reverse playback
Downstream needs to be able to restore the timestamps after a discont to do reverse playback https://bugzilla.gnome.org/show_bug.cgi?id=759592
Diffstat (limited to 'ext/hls/gsthlsdemux.c')
-rw-r--r--ext/hls/gsthlsdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c
index 060ca2721..f2b7d44f9 100644
--- a/ext/hls/gsthlsdemux.c
+++ b/ext/hls/gsthlsdemux.c
@@ -698,7 +698,7 @@ gst_hls_demux_update_fragment_info (GstAdaptiveDemuxStream * stream)
discont = TRUE;
/* set up our source for download */
- if (hlsdemux->reset_pts || discont) {
+ if (hlsdemux->reset_pts || discont || stream->demux->segment.rate < 0.0) {
stream->fragment.timestamp = timestamp;
} else {
stream->fragment.timestamp = GST_CLOCK_TIME_NONE;