Author: duncan
Date: Sun Oct 14 16:22:58 2007
New Revision: 9983

Log:
Added a trap when the position cannot be discovered by xine


Modified:
   branches/rel-1/freevo/src/video/plugins/bookmarker.py

Modified: branches/rel-1/freevo/src/video/plugins/bookmarker.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/bookmarker.py       (original)
+++ branches/rel-1/freevo/src/video/plugins/bookmarker.py       Sun Oct 14 
16:22:58 2007
@@ -174,7 +174,11 @@
                 handle = os.popen(command,'r')
                 position = handle.read();
                 handle.close()
-                item.elapsed = int(position)
+                try:
+                    item.elapsed = int(position)
+                except ValueError, e:
+                    _debug_('Cannot save bookmark for postion %r: %s' % 
(position, e)
+                    return False
 
             bookmarkfile = util.get_bookmarkfile(item.filename)
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to