Author: duncan
Date: Mon Feb 25 14:45:54 2008
New Revision: 10440

Log:
Added reason when the plug-in fails to initialize


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

Modified: branches/rel-1-7/freevo/src/video/plugins/xine.py
==============================================================================
--- branches/rel-1-7/freevo/src/video/plugins/xine.py   (original)
+++ branches/rel-1-7/freevo/src/video/plugins/xine.py   Mon Feb 25 14:45:54 2008
@@ -68,9 +68,9 @@
         try:
             config.XINE_COMMAND
         except:
-            print String(_( 'ERROR' )) + ': ' + \
-                  String(_("'XINE_COMMAND' not defined, 'xine' video plugin 
deactivated.\n" \
-                           'please check the xine section in freevo_config.py' 
))
+            print _('\'XINE_COMMAND\' not defined, \'xine\' video plugin 
deactivated.\n' \
+                           'please check the xine section in freevo_config.py')
+            reason = '\'XINE_COMMAND\' not defined, \'xine\' video plugin 
deactivated'
             return
 
         if config.XINE_COMMAND.find('fbxine') >= 0:
@@ -258,10 +258,11 @@
         eventhandler for xine control. If an event is not bound in this
         function it will be passed over to the items eventhandler
         """
+        _debug_('Xine.eventhandler event=%r' % (event.__dict__,), 1)
         if not self.app:
             return self.item.eventhandler(event)
 
-        if event in ( PLAY_END, USER_END ):
+        if event in (PLAY_END, USER_END):
             self.stop(event)
             return self.item.eventhandler(event)
 

Modified: branches/rel-1/freevo/src/video/plugins/xine.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/xine.py     (original)
+++ branches/rel-1/freevo/src/video/plugins/xine.py     Mon Feb 25 14:45:54 2008
@@ -68,9 +68,9 @@
         try:
             config.XINE_COMMAND
         except:
-            print String(_( 'ERROR' )) + ': ' + \
-                  String(_("'XINE_COMMAND' not defined, 'xine' video plugin 
deactivated.\n" \
-                           'please check the xine section in freevo_config.py' 
))
+            print _('\'XINE_COMMAND\' not defined, \'xine\' video plugin 
deactivated.\n' \
+                           'please check the xine section in freevo_config.py')
+            reason = '\'XINE_COMMAND\' not defined, \'xine\' video plugin 
deactivated'
             return
 
         if config.XINE_COMMAND.find('fbxine') >= 0:
@@ -258,10 +258,11 @@
         eventhandler for xine control. If an event is not bound in this
         function it will be passed over to the items eventhandler
         """
+        _debug_('Xine.eventhandler event=%r' % (event.__dict__,), 1)
         if not self.app:
             return self.item.eventhandler(event)
 
-        if event in ( PLAY_END, USER_END ):
+        if event in (PLAY_END, USER_END):
             self.stop(event)
             return self.item.eventhandler(event)
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to