[SCM] kodi-pvr-hts/master: adapt to PVR API 5.2.0

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Fri Nov 4 23:23:40 UTC 2016


The following commit has been merged in the master branch:
commit a45b73fce32a1a8eee3d0b25c75b6a3bd82d89b3
Author: Jean-Luc Barrière <jlbarriere68 at gmail.com>
Date:   Thu Apr 21 00:10:55 2016 +0200

    adapt to PVR API 5.2.0

diff --git a/pvr.hts/addon.xml.in b/pvr.hts/addon.xml.in
index a8d1a03..81fc5ed 100644
--- a/pvr.hts/addon.xml.in
+++ b/pvr.hts/addon.xml.in
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <addon
   id="pvr.hts"
-  version="3.2.3"
+  version="3.3.0"
   name="Tvheadend HTSP Client"
   provider-name="Adam Sutton, Sam Stenvall, Lars Op den Kamp, Kai Sommerfeld">
   <requires>
     <c-pluff version="0.1"/>
-    <import addon="xbmc.pvr" version="5.1.1"/>
+    <import addon="xbmc.pvr" version="5.2.0"/>
     <import addon="xbmc.codec" version="1.0.1"/>
   </requires>
   <extension
diff --git a/pvr.hts/changelog.txt b/pvr.hts/changelog.txt
index f5cfc50..abee5d9 100644
--- a/pvr.hts/changelog.txt
+++ b/pvr.hts/changelog.txt
@@ -1,3 +1,6 @@
+3.3.0
+- Updated to PVR API v5.2.0
+
 3.2.3
 - fixed: potential crash in the channel tuning predictor
 
diff --git a/src/client.cpp b/src/client.cpp
index f1178a2..bdf1ecc 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -165,20 +165,24 @@ void ADDON_FreeSettings()
 {
 }
 
-void ADDON_Announce
-  (const char *flag, const char *sender, const char *message, 
-   const void *_unused(data))
+void OnSystemSleep()
 {
-  Logger::Log(LogLevel::LEVEL_DEBUG, "Announce(flag=%s, sender=%s, message=%s)", flag, sender, message);
+  if (tvh)
+    tvh->OnSleep();
+}
 
-  /* XBMC/System */
-  if (!strcmp(sender, "xbmc") && !strcmp(flag, "System"))
-  {
-    if (!strcmp("OnSleep", message))
-      tvh->OnSleep();
-    else if (!strcmp("OnWake", message))
-      tvh->OnWake();
-  }
+void OnSystemWake()
+{
+  if (tvh)
+    tvh->OnWake();
+}
+
+void OnPowerSavingActivated()
+{
+}
+
+void OnPowerSavingDeactivated()
+{
 }
 
 /* **************************************************************************

-- 
kodi-pvr-hts packaging



More information about the pkg-multimedia-commits mailing list