From: Matus Kral Date: Sun, 20 Apr 2014 20:24:03 +0000 (+0200) Subject: fix assertion on XBMC exit X-Git-Tag: upstream/2.2.0~1^2~1^2~3^2~11^2~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=485660f88df81ef5e535a074b1385c49bc687489;p=deb_libcec.git fix assertion on XBMC exit --- diff --git a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp index 2905c56..243223d 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp +++ b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp @@ -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();