diff --git a/projects/Amlogic-ce/devices/Amlogic-ne/patches/kodi/kodi-temp-01-TEMP-PR-7.patch b/projects/Amlogic-ce/devices/Amlogic-ne/patches/kodi/kodi-temp-01-TEMP-PR-7.patch deleted file mode 100644 index b2d3d277d99..00000000000 --- a/projects/Amlogic-ce/devices/Amlogic-ne/patches/kodi/kodi-temp-01-TEMP-PR-7.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 4b14769c42b2bc42077c8e783210bb6977244bd3 Mon Sep 17 00:00:00 2001 -From: kszaq <737984+kszaq@users.noreply.github.com> -Date: Thu, 22 Dec 2022 23:17:07 +0100 -Subject: [PATCH] AMLCodec: prefill to 0.5 - -Reduces frame stuttering with videos provided by Inputstream Adaptive ---- - xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp -index ffa268eb33..e8ab77f6de 100644 ---- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp -+++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp -@@ -2532,7 +2532,7 @@ CDVDVideoCodec::VCReturn CAMLCodec::GetPicture(VideoPicture *pVideoPicture) - return CDVDVideoCodec::VC_ERROR; - - float timesize(GetTimeSize()); -- if(!m_drain && timesize < 0.2f) -+ if(!m_drain && timesize < 0.5f) - return CDVDVideoCodec::VC_BUFFER; - - if (DequeueBuffer() == 0) diff --git a/projects/Amlogic-ce/devices/Amlogic-ne/patches/kodi/kodi-temp-01-TEMP-PR-9.patch b/projects/Amlogic-ce/devices/Amlogic-ne/patches/kodi/kodi-temp-01-TEMP-PR-9.patch new file mode 100644 index 00000000000..ed6295efd20 --- /dev/null +++ b/projects/Amlogic-ce/devices/Amlogic-ne/patches/kodi/kodi-temp-01-TEMP-PR-9.patch @@ -0,0 +1,30 @@ +From ca461e4b3729138677e89c2c0a338a6659527614 Mon Sep 17 00:00:00 2001 +From: kszaq <737984+kszaq@users.noreply.github.com> +Date: Thu, 2 Feb 2023 19:39:03 +0100 +Subject: [PATCH] AMLCodec: signal VC_FLUSHED if buffer gets empty + +Normally, VideoPlayer should feed data to decoder +to keep TimeSize between 0.2 and 1.0. If for some +reason decoder is stuck/reset, buffer can starve +and this can lead to stutter. In this case, signal +VC_FLUSHED to allow VideoPlayer restart decoding +and rendering. +--- + xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp +index 214d9f68c4..654f2192a6 100644 +--- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp ++++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp +@@ -2533,6 +2533,10 @@ CDVDVideoCodec::VCReturn CAMLCodec::GetPicture(VideoPicture *pVideoPicture) + return CDVDVideoCodec::VC_ERROR; + + float timesize(GetTimeSize()); ++ ++ if (!m_drain && timesize == 0.0f) ++ return CDVDVideoCodec::VC_FLUSHED; ++ + if(!m_drain && timesize < 0.2f) + return CDVDVideoCodec::VC_BUFFER; +