Author: duncan
Date: Mon Dec 10 11:27:18 2007
New Revision: 10194

Log:
[ 1834841 ] tv/v4l2.py setinput() issue
Small patch from Richard applied


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

Modified: branches/rel-1-7/freevo/src/tv/plugins/ivtv_xine_tv.py
==============================================================================
--- branches/rel-1-7/freevo/src/tv/plugins/ivtv_xine_tv.py      (original)
+++ branches/rel-1-7/freevo/src/tv/plugins/ivtv_xine_tv.py      Mon Dec 10 
11:27:18 2007
@@ -572,20 +572,17 @@
 
     #========================================================================
     # ShowInfo
-    # show channle info
+    # show channel info
     #========================================================================
 
     def ShowInfo(self):
 
-        # show channel info
-        vg = self.fc.getVideoGroup(self.curr_channel, True)
-        if vg.input_type == 'tuner':
+        if self.curr_channel != None:
+            # show channel info
+            vg = self.fc.getVideoGroup(self.curr_channel, True)
             tuner_id, chan_name, prog_info = 
self.fc.getChannelInfo(showtime=False)
             msg = "%s: %s" % (chan_name, prog_info)
             self.parent.ShowMessage("%s" % msg)
-        else:
-            # show channel info
-            self.parent.ShowMessage(vg.desc)
 
     #========================================================================
     # setParent

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        Mon Dec 10 
11:27:18 2007
@@ -572,20 +572,17 @@
 
     #========================================================================
     # ShowInfo
-    # show channle info
+    # show channel info
     #========================================================================
 
     def ShowInfo(self):
 
-        # show channel info
-        vg = self.fc.getVideoGroup(self.curr_channel, True)
-        if vg.input_type == 'tuner':
+        if self.curr_channel != None:
+            # show channel info
+            vg = self.fc.getVideoGroup(self.curr_channel, True)
             tuner_id, chan_name, prog_info = 
self.fc.getChannelInfo(showtime=False)
             msg = "%s: %s" % (chan_name, prog_info)
             self.parent.ShowMessage("%s" % msg)
-        else:
-            # show channel info
-            self.parent.ShowMessage(vg.desc)
 
     #========================================================================
     # setParent

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to