From 947494675a19ff9dfc4487e1b5bdf94703f7699d Mon Sep 17 00:00:00 2001 From: Eunhye Choi Date: Sat, 20 Nov 2021 14:45:31 +0900 Subject: [PATCH] hlsdemux: set discont. only at start fragment - discont have to be set in case of start fragment to update pts correctly. Change-Id: I482dd48012b8dc76d54e97b91e83b3083ad81d5b --- ext/hls/gsthlsdemux.c | 3 ++- packaging/gst-plugins-bad.spec | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 25e7a07f1e..96ae1c2911 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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)) { diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index 62991b3bdf..8be4dfb633 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -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 -- 2.34.1