Author: duncan
Date: Mon Oct 23 23:10:39 2006
New Revision: 8459
Modified:
branches/rel-1-6/freevo/src/tv/v4l2.py
Log:
[ 1583218 ] 1.6 svn ivtv traceback UnicodeDecodeError
Corrected print statement
Modified: branches/rel-1-6/freevo/src/tv/v4l2.py
==============================================================================
--- branches/rel-1-6/freevo/src/tv/v4l2.py (original)
+++ branches/rel-1-6/freevo/src/tv/v4l2.py Mon Oct 23 23:10:39 2006
@@ -26,7 +26,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-# ----------------------------------------------------------------------- */
+# -----------------------------------------------------------------------
import string
@@ -288,7 +288,7 @@
def gettuner(self,index):
val = struct.pack( TUNER_ST, index, "", 0,0,0,0,0,0,0,0)
r = fcntl.ioctl(self.device, i32(GET_TUNER_NO), val)
- if DEBUG >= 3: print "getfmt: val=%r, r=%r, res=%r" % (val, r,
struct.unpack(FMT_ST,r))
+ if DEBUG >= 3: print "gettuner: val=%r, r=%r, res=%r" % (val, r,
struct.unpack(TUNER_ST,r))
return struct.unpack( TUNER_ST, r )
@@ -387,13 +387,13 @@
if __name__ == '__main__':
+ DEBUG = 4
viddev=Videodev('/dev/video0')
print viddev.getdriver()
print viddev.getversion()
#print viddev.querycap()
inp = viddev.getinput()
viddev.setinput(inp)
- '''
print viddev.querycap()
fmt = viddev.getstd()
print fmt
@@ -438,4 +438,5 @@
print viddev.getfreq()
print viddev.getfreq2()
'''
+ '''
viddev.close()
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog