From: Lars Op den Kamp Date: Mon, 27 Feb 2012 13:15:26 +0000 (+0100) Subject: cec: don't send an updated configuration when libCEC hasn't been initialised fully... X-Git-Tag: upstream/2.2.0~1^2~33^2~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=468d786e1a579c40281a1c1703dec87cca6d71d7;p=deb_libcec.git cec: don't send an updated configuration when libCEC hasn't been initialised fully. bugzid: 459 --- diff --git a/src/lib/LibCEC.cpp b/src/lib/LibCEC.cpp index b853771..f09843f 100644 --- a/src/lib/LibCEC.cpp +++ b/src/lib/LibCEC.cpp @@ -387,7 +387,8 @@ void CLibCEC::ConfigurationChanged(const libcec_configuration &config) if (instance->m_callbacks && config.clientVersion >= CEC_CLIENT_VERSION_1_5_0 && - instance->m_callbacks->CBCecConfigurationChanged != NULL) + instance->m_callbacks->CBCecConfigurationChanged != NULL && + instance->m_cec->IsInitialised()) instance->m_callbacks->CBCecConfigurationChanged(instance->m_cbParam, config); }