mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +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;
|
return nullptr;
|
||||||
|
|
||||||
default:
|
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 {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user