Skip to content
Snippets Groups Projects
Verified Commit d5bb7a4b authored by Dominic Meiser's avatar Dominic Meiser
Browse files

only use vaapi when feature is enabled

parent 5e1f5e88
Branches
No related tags found
No related merge requests found
...@@ -24,3 +24,4 @@ toml = { package = "basic-toml", version = "0.1.4" } ...@@ -24,3 +24,4 @@ toml = { package = "basic-toml", version = "0.1.4" }
[features] [features]
default = ["mem_limit"] default = ["mem_limit"]
mem_limit = [] mem_limit = []
vaapi = []
...@@ -322,7 +322,7 @@ impl Ffmpeg { ...@@ -322,7 +322,7 @@ impl Ffmpeg {
// initialise a vaapi device if one exists // initialise a vaapi device if one exists
let vaapi_device: PathBuf = "/dev/dri/renderD128".into(); let vaapi_device: PathBuf = "/dev/dri/renderD128".into();
let vaapi = vaapi_device.exists(); let vaapi = cfg!(feature = "vaapi") && vaapi_device.exists();
if vaapi && venc { if vaapi && venc {
if vdec { if vdec {
cmd.arg("-hwaccel").arg("vaapi"); cmd.arg("-hwaccel").arg("vaapi");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment