Author: duncan
Date: Sun Feb  4 21:54:49 2007
New Revision: 9164

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

Log:
Debug statement casued a crash when there is no audio, should no be fixed


Modified: branches/rel-1/freevo/src/video/plugins/bilingual.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/bilingual.py        (original)
+++ branches/rel-1/freevo/src/video/plugins/bilingual.py        Sun Feb  4 
21:54:49 2007
@@ -73,9 +73,10 @@
         '''
         _debug_('actions(self, item)', 2)
         if item.type == 'video' and item.mode == 'file':
-            _debug_('len(item.info[\'audio\'])=%d' % (len(item.info['audio'])))
-            _debug_('item[\'audio\'][0][\'codec\']=%r' % 
(item['audio'][0]['codec']))
+            if hasattr(item, 'audio'):
+                _debug_('len(item.info[\'audio\'])=%d' % 
(len(item.info['audio'])))
             if len(item.info['audio']) == 1:
+                _debug_('item[\'audio\'][0][\'codec\']=%r' % 
(item['audio'][0]['codec']))
                 if item['audio'][0]['codec'] == 'MP2A':
                     self.item = item
                     return [ (self.language_selection_menu, _('Bilingual 
language selection')) ]

-------------------------------------------------------------------------
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

Reply via email to