Browse Source

forgot to add my patch

Waldemar Brodkorb 10 years ago
parent
commit
f81ec79b21

+ 1 - 1
package/libcec/Makefile

@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=		libcec
 PKG_VERSION:=		2.1.4
-PKG_RELEASE:=		3
+PKG_RELEASE:=		4
 PKG_MD5SUM:=		faa58944f87e9beda165f615d4b46766
 PKG_DESCR:=		control your device with your TV remote control
 PKG_SECTION:=		libs

+ 12 - 0
package/libcec/patches/patch-src_lib_adapter_RPi_RPiCECAdapterCommunication_cpp

@@ -0,0 +1,12 @@
+--- libcec-2.1.4.orig/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp	2013-12-16 10:32:51.000000000 +0100
++++ libcec-2.1.4/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp	2014-05-28 18:25:18.809692104 +0200
+@@ -353,7 +353,8 @@ void CRPiCECAdapterCommunication::Close(
+     else
+       return;
+   }
+-  vc_tv_unregister_callback(rpi_tv_callback);
++  if (m_bInitialised)
++    vc_tv_unregister_callback(rpi_tv_callback);
+ 
+   UnregisterLogicalAddress();
+