Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11525/src/tv
Modified Files:
v4l2.py
Log Message:
-Revive v4l2 channel changing.
-Set the card's input based on the current settings.
Index: v4l2.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/v4l2.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** v4l2.py 13 Aug 2004 16:17:33 -0000 1.18
--- v4l2.py 23 Aug 2004 01:24:50 -0000 1.19
***************
*** 10,13 ****
--- 10,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.19 2004/08/23 01:24:50 rshortt
+ # -Revive v4l2 channel changing.
+ # -Set the card's input based on the current settings.
+ #
# Revision 1.18 2004/08/13 16:17:33 rshortt
# More work on tv settings, configuration of v4l2 devices based on TV_SETTINGS.
***************
*** 196,199 ****
--- 200,205 ----
def setchannel(self, channel):
+ channel = str(channel)
+
freq = config.FREQUENCY_TABLE.get(channel)
if freq:
***************
*** 202,210 ****
(channel, freq)
else:
! freq = self.chanlist[str(channel)]
if DEBUG:
print 'USING STANDARD FREQUENCY: chan="%s", freq="%s"' % \
(channel, freq)
freq *= 16
--- 208,220 ----
(channel, freq)
else:
! freq = self.chanlist.get(channel)
if DEBUG:
print 'USING STANDARD FREQUENCY: chan="%s", freq="%s"' % \
(channel, freq)
+ if not freq:
+ print 'ERROR: unable to get frequency for %s' % channel
+ return
+
freq *= 16
***************
*** 317,322 ****
self.setchanlist(self.settings.chanlist)
! # XXX TODO: make a good way of setting the input
! # self.setinput(....)
# XXX TODO: make a good way of setting the capture resolution
--- 327,331 ----
self.setchanlist(self.settings.chanlist)
! self.setinput(self.settings.input)
# XXX TODO: make a good way of setting the capture resolution
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog