Author: duncan
Date: Wed Jan 17 22:27:12 2007
New Revision: 8991

Modified:
   branches/rel-1/freevo/src/tv/plugins/ivtv_xine_tv.py

Log:
[ 1637174 ] ivtv_xine channel number disconnect
Patch from Justin Wetherell applied


Modified: branches/rel-1/freevo/src/tv/plugins/ivtv_xine_tv.py
==============================================================================
--- branches/rel-1/freevo/src/tv/plugins/ivtv_xine_tv.py        (original)
+++ branches/rel-1/freevo/src/tv/plugins/ivtv_xine_tv.py        Wed Jan 17 
22:27:12 2007
@@ -261,7 +261,7 @@
                 self.lastinput_value = newinput_value
                 self.lastinput_time = newinput_time
 
-                self.tuner.TuneChannel(newinput_value)
+                self.tuner.TuneChannelByNumber(newinput_value)
 
                 if newinput_value > 9:
 
@@ -418,14 +418,14 @@
 
         if (next_channel == None):
 
-            _debug_("TunerControl: Cannot find tuner channel '%s' in the TV 
channel listing" % channel)
+           _debug_("TunerControl: Cannot find tuner channel '%s' in the TV 
channel listing" % channel)
 
         else:
 
-            self.TuneChannel(channel_index + 1)
+            self.TuneChannelByIndex(channel_index + 1)
 
 
-    def TuneChannel(self, channel):
+    def TuneChannelByIndex(self, channel):
 
         # tune channel by index
 
@@ -435,6 +435,13 @@
         self.PushChannel()
         self.SetVideoGroup(next_channel)
 
+    def TuneChannelByNumber(self, channel):
+
+        # tune channel by number
+
+        self.PushChannel()
+        self.SetVideoGroup(str(channel))
+
 
     def NextChannel(self):
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to