From 87f8d7890cc196d9fc341e24d269a148868f717e Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 3 Mar 2015 17:47:51 -0300 Subject: [PATCH] hlsdemux: set timestamp on discont buffers Make sure discont buffers have its timestamp set to allow downstream to resync if needed --- ext/hls/gsthlsdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 43b8f0a..fad5a7b 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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; -- 2.7.4