hlsdemux: set discont. only at start fragment
authorEunhye Choi <eunhae1.choi@samsung.com>
Sat, 20 Nov 2021 05:45:31 +0000 (14:45 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Mon, 22 Nov 2021 03:03:17 +0000 (12:03 +0900)
- discont have to be set in case of start fragment
  to update pts correctly.

Change-Id: I482dd48012b8dc76d54e97b91e83b3083ad81d5b

ext/hls/gsthlsdemux.c
packaging/gst-plugins-bad.spec

index 25e7a07..96ae1c2 100644 (file)
@@ -1326,7 +1326,8 @@ gst_hls_demux_handle_buffer (GstAdaptiveDemux * demux,
     return GST_FLOW_OK;
   }
 #ifdef TIZEN_FEATURE_HLSDEMUX_DISCONT
-  if (!stream->discont && GST_CLOCK_TIME_IS_VALID (hls_stream->last_pcr)
+  if (stream->first_fragment_buffer && !stream->discont
+      && GST_CLOCK_TIME_IS_VALID (hls_stream->last_pcr)
       && GST_CLOCK_TIME_IS_VALID (last_pcr)) {
     if (G_UNLIKELY (ABSDIFF (hls_stream->last_pcr, last_pcr) > 1 * GST_SECOND)
         && (stream->fragment.timestamp != hls_stream->sequence_pos)) {
index 62991b3..8be4dfb 100644 (file)
@@ -4,7 +4,7 @@
 
 Name:           gst-plugins-bad
 Version:        1.16.2
-Release:        24
+Release:        25
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 License:        LGPL-2.0+
 Group:          Multimedia/Framework