mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-15 14:42:26 +00:00
Don't fall back to the generic hwaccel for DRM_PRIME formats
This commit is contained in:
@@ -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