aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2024-02-09 10:18:02 +0300
committerAndrey Filipenkov <decapitator@ukr.net>2024-02-09 10:48:07 +0300
commit4a4605336171f75300147d03b07018a4781c18fe (patch)
treee2079da2303e91d1ff583b7194af3810c1c79d58
parentae637e6c52b5da2e1e0e3cead9480d7368dffce4 (diff)
[iOS/tvOS] force disable hardware acceleration 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);