Skip to content
Snippets Groups Projects
Commit 87f66dcd authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud
Browse files

accel: fix crash during qsv initialization

Change-Id: I568c0df19aa4bb6f88bb014b3b7d3c6f2d33261b
parent 2df2f02d
Branches
No related tags found
No related merge requests found
......@@ -141,7 +141,10 @@ HardwareAccel::test_device_type(std::string& dev)
}
JAMI_WARN("-- Starting %s test for %s with default device.", (type_ == CODEC_ENCODER) ? "encoding" : "decoding", name);
err = test_device(name, nullptr, 0);
if (name_ == "qsv")
err = test_device(name, "auto", 0);
else
err = test_device(name, nullptr, 0);
if (err == 0) {
JAMI_DBG("-- Test passed for %s with default device.", name);
dev = "default";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment