cec: don't send an updated configuration when libCEC hasn't been initialised fully...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 27 Feb 2012 13:15:26 +0000 (14:15 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 27 Feb 2012 13:15:26 +0000 (14:15 +0100)
src/lib/LibCEC.cpp

index b8537717fac29f72038e939b363af0c2ed49af56..f09843ff87090da4ff04b8d6ff4befe234f16d43 100644 (file)
@@ -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);
 }