fix assertion on XBMC exit
authorMatus Kral <matuskral@me.com>
Sun, 20 Apr 2014 20:24:03 +0000 (22:24 +0200)
committerMatus Kral <matuskral@me.com>
Thu, 29 May 2014 01:15:07 +0000 (03:15 +0200)
src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp

index 2905c56bb0d06b5e7fbb942903f52da4fa8d4d27..243223d3f67d0a149d5e37a85bc8daa4e065a0aa 100644 (file)
@@ -353,7 +353,8 @@ void CRPiCECAdapterCommunication::Close(void)
     else
       return;
   }
-  vc_tv_unregister_callback(rpi_tv_callback);
+  if (m_bInitialised)
+    vc_tv_unregister_callback(rpi_tv_callback);
 
   UnregisterLogicalAddress();