libcamera: give higher priority to external cameras

if you have plugged an external camera, that probably means you
prefer using that instead of the internal one
This commit is contained in:
George Kiagiadakis
2022-05-31 12:15:11 +03:00
parent 334a134471
commit 2ac384711d

View File

@@ -102,9 +102,9 @@ function createNode(parent, id, type, factory, properties)
-- set priority
if not properties["priority.session"] then
local priority = 700
if location == "front" then
if location == "external" then
priority = priority + 150
elseif location == "external" then
elseif location == "front" then
priority = priority + 100
elseif location == "back" then
priority = priority + 50