hlsdemux: set timestamp on discont buffers
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 3 Mar 2015 20:47:51 +0000 (17:47 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 4 Mar 2015 11:00:48 +0000 (08:00 -0300)
Make sure discont buffers have its timestamp set to allow downstream
to resync if needed

ext/hls/gsthlsdemux.c

index 43b8f0a..fad5a7b 100644 (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;