aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2024-02-09 21:50:16 +0300
committerGitHub <noreply@github.com>2024-02-09 21:50:16 +0300
commita992b098e15cc760bff8b27f42268c769181b0e9 (patch)
treee2079da2303e91d1ff583b7194af3810c1c79d58
parentae637e6c52b5da2e1e0e3cead9480d7368dffce4 (diff)
parent4a4605336171f75300147d03b07018a4781c18fe (diff)
Merge pull request #24672 from kambala-decapitator/nexus-darwin-embedded-vtb-livetv
[BP][iOS/tvOS] disable VTB for real-time interlaced videos
-rw-r--r--xbmc/cores/VideoPlayer/DVDCodecs/Video/VTB.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VTB.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VTB.cpp
index b704f9b633..00ad20cc9d 100644
--- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VTB.cpp
+++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VTB.cpp
@@ -15,7 +15,6 @@
#include "cores/VideoPlayer/Process/ProcessInfo.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
-#include "utils/log.h"
#include <mutex>
@@ -130,6 +129,13 @@ void CVideoBufferPoolVTB::Return(int id)
IHardwareDecoder* CDecoder::Create(CDVDStreamInfo &hint, CProcessInfo &processInfo, AVPixelFormat fmt)
{
+#if defined(TARGET_DARWIN_EMBEDDED)
+ // force disable HW acceleration for live streams
+ // to avoid absent image issue on interlaced videos
+ if (processInfo.IsRealtimeStream())
+ return nullptr;
+#endif
+
if (fmt == AV_PIX_FMT_VIDEOTOOLBOX && CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(CSettings::SETTING_VIDEOPLAYER_USEVTB))
return new VTB::CDecoder(processInfo);