The branch, eden-pre has been updated
       via  c57119727058efa4a0a324c19a0ceba3faf2ecad (commit)
      from  4be5e403a331842c948d42590b56c2a48366186d (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=c57119727058efa4a0a324c19a0ceba3faf2ecad

commit c57119727058efa4a0a324c19a0ceba3faf2ecad
Author: amet <[email protected]>
Date:   Sat Dec 10 18:12:30 2011 +0400

    [script.xbmc.boblight] -v1.0.1
    
    - ping boblightd and reconnect if connection is lost

diff --git a/script.xbmc.boblight/addon.xml b/script.xbmc.boblight/addon.xml
index 56a7232..11cb246 100644
--- a/script.xbmc.boblight/addon.xml
+++ b/script.xbmc.boblight/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.xbmc.boblight" name="XBMC Boblight" version="1.0.0" 
provider-name="bobo1on1, Memphiz">
+<addon id="script.xbmc.boblight" name="XBMC Boblight" version="1.0.1" 
provider-name="bobo1on1, Memphiz">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
   </requires>
diff --git a/script.xbmc.boblight/default.py b/script.xbmc.boblight/default.py
index 11efa53..122992b 100644
--- a/script.xbmc.boblight/default.py
+++ b/script.xbmc.boblight/default.py
@@ -50,7 +50,7 @@ def process_boblight():
   capture = xbmc.RenderCapture()
   capture.capture(capture_width, capture_height, xbmc.CAPTURE_FLAG_CONTINUOUS)
   while not xbmc.abortRequested:
-    if settings_checkForNewSettings():
+    if settings_checkForNewSettings() or not bob_ping():
       reconnectBoblight()
       settings_setup()                                 #after reconnect reload 
settings
     if settings_getBobDisable():
diff --git a/script.xbmc.boblight/resources/lib/boblight.py 
b/script.xbmc.boblight/resources/lib/boblight.py
index 651b764..dda276e 100644
--- a/script.xbmc.boblight/resources/lib/boblight.py
+++ b/script.xbmc.boblight/resources/lib/boblight.py
@@ -199,3 +199,9 @@ def bob_geterror():
   if g_boblightLoaded:
     ret = c_char_p(g_libboblight.boblight_geterror(g_bobHandle)).value
   return ret
+
+def bob_ping():
+  ret = False
+  if g_boblightLoaded and g_connected:
+    ret = c_int(g_libboblight.boblight_ping(g_bobHandle, None)).value == 1
+  return ret

-----------------------------------------------------------------------

Summary of changes:
 script.xbmc.boblight/addon.xml                     |    2 +-
 script.xbmc.boblight/changelog.txt                 |    5 +++++
 script.xbmc.boblight/default.py                    |    2 +-
 script.xbmc.boblight/resources/lib/boblight.py     |    6 ++++++
 .../script.xbmc.boblight.keymap.xml                |    9 ---------
 5 files changed, 13 insertions(+), 11 deletions(-)
 create mode 100644 script.xbmc.boblight/changelog.txt
 delete mode 100644 script.xbmc.boblight/script.xbmc.boblight.keymap.xml


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to