diff --git a/src/backends/mpv/mpv_proxy.cpp b/src/backends/mpv/mpv_proxy.cpp index 546b3d6e..bd183d0d 100644 --- a/src/backends/mpv/mpv_proxy.cpp +++ b/src/backends/mpv/mpv_proxy.cpp @@ -462,7 +462,7 @@ mpv_handle *MpvProxy::mpv_init() m_sInitVo = "vaapi"; } - if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default")) { + if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default") && !QFile::exists("/dev/mtgpu.0")) { my_set_property(pHandle, "hwdec", "no"); my_set_property(pHandle, "vo", "x11"); my_set_property(pHandle, "video-sync", "desync"); @@ -528,7 +528,7 @@ mpv_handle *MpvProxy::mpv_init() } } #endif - if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default")) { + if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default") && !QFile::exists("/dev/mtgpu.0")) { my_set_property(pHandle, "hwdec", "no"); my_set_property(pHandle, "vo", "x11"); my_set_property(pHandle, "video-sync", "desync"); @@ -1334,7 +1334,7 @@ void MpvProxy::refreshDecode() my_set_property(m_handle, "hwdec", "vaapi"); } - if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default")) { + if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default") && !QFile::exists("/dev/mtgpu.0")) { my_set_property(m_handle, "hwdec", "no"); my_set_property(m_handle, "vo", "x11"); my_set_property(m_handle, "video-sync", "desync"); @@ -1397,7 +1397,7 @@ void MpvProxy::refreshDecode() my_set_property(m_handle, "hwdec", "vaapi"); } - if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default")) { + if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default") && !QFile::exists("/dev/mtgpu.0")) { my_set_property(m_handle, "hwdec", "no"); my_set_property(m_handle, "vo", "x11"); my_set_property(m_handle, "video-sync", "desync");