Commit c25567fe authored by Philippe Gorley's avatar Philippe Gorley

accel: fix vaapi drm

Change-Id: I37302afd2b8b7f18b92c213ba505f85120e72b02
parent e4a9748f
...@@ -156,7 +156,6 @@ bool ...@@ -156,7 +156,6 @@ bool
HardwareAccel::initDevice() HardwareAccel::initDevice()
{ {
int ret = 0; int ret = 0;
#ifdef HAVE_VAAPI_ACCEL_DRM
// default DRM device may not work on multi GPU computers, so check all possible values // default DRM device may not work on multi GPU computers, so check all possible values
if (hwType_ == AV_HWDEVICE_TYPE_VAAPI) { if (hwType_ == AV_HWDEVICE_TYPE_VAAPI) {
const std::string path = "/dev/dri/"; const std::string path = "/dev/dri/";
...@@ -170,7 +169,6 @@ HardwareAccel::initDevice() ...@@ -170,7 +169,6 @@ HardwareAccel::initDevice()
} }
} }
} }
#endif
// default device (nullptr) works for most cases // default device (nullptr) works for most cases
ret = av_hwdevice_ctx_create(&deviceCtx_, hwType_, nullptr, nullptr, 0); ret = av_hwdevice_ctx_create(&deviceCtx_, hwType_, nullptr, nullptr, 0);
return ret >= 0; return ret >= 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment