From 27264c392166c21232e6d5fa63813d4daa45a929 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sun, 20 Aug 2017 17:16:28 +0200 Subject: Updated to latest App Template --- ctl-binding.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ctl-binding.c') diff --git a/ctl-binding.c b/ctl-binding.c index 8771fc0..ec33f82 100644 --- a/ctl-binding.c +++ b/ctl-binding.c @@ -55,9 +55,12 @@ PUBLIC int CtlBindingInit () { errcount += LuaLibInit(); #endif + const char *profile= getenv("CONTROL_ONLOAD_PROFILE"); + if (!profile) profile=CONTROL_ONLOAD_PROFILE; + // now that everything is initialised execute the onload action - if (!errcount) - errcount += DispatchOnLoad(CONTROL_ONLOAD_DEFAULT); + if (!errcount) + errcount += DispatchOnLoad(CONTROL_ONLOAD_PROFILE); AFB_DEBUG ("Audio Policy Control Binding Done errcount=%d", errcount); return errcount; -- cgit 1.2.3-korg