hlsdemux: set timestamp on discont buffers

Make sure discont buffers have its timestamp set to allow downstream
to resync if needed
This commit is contained in:
Thiago Santos 2015-03-03 17:47:51 -03:00
parent e8a3973b8f
commit 87f8d7890c

View file

@ -720,7 +720,7 @@ gst_hls_demux_update_fragment_info (GstAdaptiveDemuxStream * stream)
}
/* set up our source for download */
if (hlsdemux->reset_pts) {
if (hlsdemux->reset_pts || discont) {
stream->fragment.timestamp = timestamp;
} else {
stream->fragment.timestamp = GST_CLOCK_TIME_NONE;