Skip to content

Commit 2b5388e

Browse files
committed
Fix non-EGL frontend renderers when compiled without EGL support
1 parent a9ad048 commit 2b5388e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/streaming/video/ffmpeg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,10 +1167,10 @@ bool FFmpegVideoDecoder::tryInitializeRenderer(const AVCodec* decoder,
11671167
*failureReason = IFFmpegRenderer::InitFailureReason::Unknown;
11681168
}
11691169

1170-
// i == 0 - Indirect via EGL or DRM frontend with zero-copy DMA-BUF passing
1171-
// i == 1 - Direct rendering or indirect via SDL read-back
1170+
// i == 0 - Indirect via EGL, DRM, or Vulkan frontend with zero-copy buffer passing
1171+
// i == 1 - Direct rendering or indirect via SDL or DRM read-back
11721172
bool backendInitFailure = false;
1173-
#ifdef HAVE_EGL
1173+
#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && (defined(HAVE_EGL) || defined(HAVE_DRM) || defined(HAVE_LIBPLACEBO_VULKAN))
11741174
for (int i = 0; i < 2 && !backendInitFailure; i++) {
11751175
#else
11761176
for (int i = 1; i < 2 && !backendInitFailure; i++) {

0 commit comments

Comments
 (0)