diff options
author | Domen Kožar <domen@dev.si> | 2014-12-24 10:57:07 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-12-24 10:57:41 +0100 |
commit | c998edfb6d0e492b3d3f924d0c14324d57db70db (patch) | |
tree | a08781e7f3319d91062106aca790286797965c34 /pkgs/applications/video | |
parent | 157e63c6e6d7f9021eebc604370888642e05c84d (diff) | |
download | nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.tar nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.tar.gz nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.tar.bz2 nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.tar.lz nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.tar.xz nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.tar.zst nixlib-c998edfb6d0e492b3d3f924d0c14324d57db70db.zip |
libcec: 2.1.4 -> 2.2.0
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/xbmc/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch | 32 | ||||
-rw-r--r-- | pkgs/applications/video/xbmc/default.nix | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/video/xbmc/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch b/pkgs/applications/video/xbmc/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch new file mode 100644 index 000000000000..91811194c9b7 --- /dev/null +++ b/pkgs/applications/video/xbmc/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch @@ -0,0 +1,32 @@ +From 9f1e45a10860dd23239de35673643e9e0e4a74f8 Mon Sep 17 00:00:00 2001 +From: Lars Op den Kamp <lars@opdenkamp.eu> +Date: Tue, 28 Oct 2014 14:52:16 +0100 +Subject: [PATCH 5/8] [CEC] renamed the iDoubleTapTimeoutMs in the new libCEC + for clarity. does not change binary compatibility + +--- + xbmc/peripherals/devices/PeripheralCecAdapter.cpp | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/xbmc/peripherals/devices/PeripheralCecAdapter.cpp b/xbmc/peripherals/devices/PeripheralCecAdapter.cpp +index 1d068dc..ad123d9 100644 +--- a/xbmc/peripherals/devices/PeripheralCecAdapter.cpp ++++ b/xbmc/peripherals/devices/PeripheralCecAdapter.cpp +@@ -1347,8 +1347,13 @@ void CPeripheralCecAdapter::SetConfigurationFromSettings(void) + m_configuration.bPowerOffOnStandby = iStandbyAction == 13011 ? 1 : 0; + m_configuration.bShutdownOnStandby = iStandbyAction == 13005 ? 1 : 0; + ++#if defined(CEC_DOUBLE_TAP_TIMEOUT_MS_OLD) + // double tap prevention timeout in ms +- m_configuration.iDoubleTapTimeoutMs = GetSettingInt("double_tap_timeout_ms"); ++ m_configuration.iDoubleTapTimeout50Ms = GetSettingInt("double_tap_timeout_ms") / 50; ++#else ++ // backwards compatibility. will be removed once the next major release of libCEC is out ++ m_configuration.iDoubleTapTimeoutMs = GetSettingInt("double_tap_timeout_ms"); ++#endif + } + + void CPeripheralCecAdapter::ReadLogicalAddresses(const CStdString &strString, cec_logical_addresses &addresses) +-- +2.1.2 + diff --git a/pkgs/applications/video/xbmc/default.nix b/pkgs/applications/video/xbmc/default.nix index f7bddc50ef82..cb6f4346e168 100644 --- a/pkgs/applications/video/xbmc/default.nix +++ b/pkgs/applications/video/xbmc/default.nix @@ -72,6 +72,8 @@ stdenv.mkDerivation rec { dontUseCmakeConfigure = true; + patches = [ ./0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch ]; + preConfigure = '' substituteInPlace xbmc/linux/LinuxTimezone.cpp \ --replace 'usr/share/zoneinfo' 'etc/zoneinfo' |