Author: duncan
Date: Wed Jun 27 15:46:39 2007
New Revision: 9728

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

Log:
[ 1742711 ] Broken svn version of autovars in videoitem.py
Patch from Valera Koval applied


Modified: branches/rel-1/freevo/src/video/videoitem.py
==============================================================================
--- branches/rel-1/freevo/src/video/videoitem.py        (original)
+++ branches/rel-1/freevo/src/video/videoitem.py        Wed Jun 27 15:46:39 2007
@@ -54,15 +54,6 @@
     def __init__(self, url, parent, info=None, parse=True):
         self.autovars = []
 
-        video_deinterlace = config.VIDEO_DEINTERLACE != None and 
config.VIDEO_DEINTERLACE or False
-        self.autovars.append(('deinterlace', video_deinterlace))
-
-        video_use_xvmc = config.VIDEO_USE_XVMC != None and 
config.VIDEO_USE_XVMC or False
-        self.autovars.append(('xvmc', video_use_xvmc))
-
-        video_field_dominance = config.VIDEO_FIELD_DOMINANCE != None and 
config.VIDEO_FIELD_DOMINANCE or False
-        self.autovars.append(('field-dominance', video_field_dominance))
-
         Item.__init__(self, parent)
 
         self.type = 'video'
@@ -71,6 +62,15 @@
         if info:
             self.info.set_variables(info)
 
+        video_deinterlace = config.VIDEO_DEINTERLACE != None and 
config.VIDEO_DEINTERLACE or False
+        self['deinterlace'] = video_deinterlace
+
+        video_use_xvmc = config.VIDEO_USE_XVMC != None and 
config.VIDEO_USE_XVMC or False
+        self['xvmc'] = video_use_xvmc
+
+        video_field_dominance = config.VIDEO_FIELD_DOMINANCE != None and 
config.VIDEO_FIELD_DOMINANCE or False
+        self['field-dominance'] = video_field_dominance
+
         self.variants          = []         # if this item has variants
         self.subitems          = []         # more than one file/track to play
         self.current_subitem   = None
@@ -134,13 +134,12 @@
             if discset_information.has_key(fid):
                 self.mplayer_options = discset_information[fid]
 
-        if config.VIDEO_DEINTERLACE and self.info['deinterlaced']:
+        if config.VIDEO_DEINTERLACE and self.info['deinterlace']:
             # force deinterlacing
             self['deinterlace'] = True
         else:
             self['deinterlace'] = False
 
-
     def __str__(self):
         s = pformat(self, depth=2)
         return s

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to