Author: rshortt
Date: Wed Mar 8 16:31:31 2006
New Revision: 1255
Modified:
trunk/record/src/v4l_scan.py
Log:
Do not crash on failed read_sliced().
Modified: trunk/record/src/v4l_scan.py
==============================================================================
--- trunk/record/src/v4l_scan.py (original)
+++ trunk/record/src/v4l_scan.py Wed Mar 8 16:31:31 2006
@@ -16,7 +16,11 @@
start = time.time()
while time.time() - 3 < start:
# scan 3 seconds for network name
- vbi.read_sliced()
+ try:
+ vbi.read_sliced()
+ except:
+ print 'failed to read vbi slice'
+
if vbi.network:
print 'found "%s" (%s)' % vbi.network
chanid = vbi.network[0]
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog