mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 08:07:22 +00:00
Don't fall back to the generic hwaccel for DRM_PRIME formats
This commit is contained in:
1 parent
b448e5bbd7
commit
526d815930
1 file changed
+8
-1
@@ -1049,7 +1049,14 @@ IFFmpegRenderer* FFmpegVideoDecoder::createHwAccelRenderer(const AVCodecHWConfig
|
||||
return nullptr;
|
||||
|
||||
default:
|
||||
return new GenericHwAccelRenderer(hwDecodeCfg->device_type);
|
||||
if (hwDecodeCfg->pix_fmt != AV_PIX_FMT_DRM_PRIME) {
|
||||
return new GenericHwAccelRenderer(hwDecodeCfg->device_type);
|
||||
}
|
||||
else {
|
||||
// We already handle unknown devices types that
|
||||
// output DRM_PRIME frames above in pass 0.
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user