diff --git a/src/media/video/accel.cpp b/src/media/video/accel.cpp index 754fa91e7053c5a54686ed036ccf77f3c37e058b..5374b4d8e9a1e1f25becb0406ea951efd2fbc486 100644 --- a/src/media/video/accel.cpp +++ b/src/media/video/accel.cpp @@ -156,7 +156,6 @@ bool HardwareAccel::initDevice() { int ret = 0; -#ifdef HAVE_VAAPI_ACCEL_DRM // default DRM device may not work on multi GPU computers, so check all possible values if (hwType_ == AV_HWDEVICE_TYPE_VAAPI) { const std::string path = "/dev/dri/"; @@ -170,7 +169,6 @@ HardwareAccel::initDevice() } } } -#endif // default device (nullptr) works for most cases ret = av_hwdevice_ctx_create(&deviceCtx_, hwType_, nullptr, nullptr, 0); return ret >= 0;