mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 07:46:07 +00:00
Fix build with HAVE_MMAL
This commit is contained in:
parent
a56cb0e88a
commit
09ed82db65
@ -762,10 +762,15 @@ bool FFmpegVideoDecoder::tryInitializeRendererForDecoderByName(const char *decod
|
|||||||
// HACK: Avoid using YUV420P on h264_mmal. It can cause a deadlock inside the MMAL libraries.
|
// HACK: Avoid using YUV420P on h264_mmal. It can cause a deadlock inside the MMAL libraries.
|
||||||
// Even if it didn't completely deadlock us, the performance would likely be atrocious.
|
// Even if it didn't completely deadlock us, the performance would likely be atrocious.
|
||||||
if (strcmp(decoderName, "h264_mmal") == 0) {
|
if (strcmp(decoderName, "h264_mmal") == 0) {
|
||||||
TRY_PREFERRED_PIXEL_FORMAT(MmalRenderer);
|
for (int i = 0; decoder->pix_fmts[i] != AV_PIX_FMT_NONE; i++) {
|
||||||
TRY_SUPPORTED_NON_PREFERRED_PIXEL_FORMAT(MmalRenderer);
|
TRY_PREFERRED_PIXEL_FORMAT(MmalRenderer);
|
||||||
|
}
|
||||||
|
|
||||||
// Give up if we can't use MmalRenderer
|
for (int i = 0; decoder->pix_fmts[i] != AV_PIX_FMT_NONE; i++) {
|
||||||
|
TRY_SUPPORTED_NON_PREFERRED_PIXEL_FORMAT(MmalRenderer);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Give up if we can't use MmalRenderer for h264_mmal
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user