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
This commit is contained in:
Thiago Santos 2015-12-18 11:56:17 -03:00
parent 937e249b44
commit 29de588e2f

View file

@ -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;