hlsdemux: set discont. only at start fragment 57/266857/2
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 25e7a07f1ed373a78971a29a4c6a3b1b3e775ec5..96ae1c2911ac3043a0a9e1fcd585b220dd86a7c0 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 62991b3bdf526d9d997beb05280510f81c4f6a08..8be4dfb633d88087570c0ef70e3ebb0576cba0cb 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