Author: dmeyer
Date: Sun Feb 25 19:53:32 2007
New Revision: 2526

Modified:
   trunk/popcorn/src/backends/xine/child.py
   trunk/popcorn/src/backends/xine/player.py

Log:
set colorkey (does not seem to work right

Modified: trunk/popcorn/src/backends/xine/child.py
==============================================================================
--- trunk/popcorn/src/backends/xine/child.py    (original)
+++ trunk/popcorn/src/backends/xine/child.py    Sun Feb 25 19:53:32 2007
@@ -71,6 +71,7 @@
         self._xine.set_config_value("effects.goom.width", 512)
         self._xine.set_config_value("effects.goom.height", 384)
         self._xine.set_config_value("effects.goom.csc_method", "Slow but looks 
better")
+        self._xine.set_config_value("video.device.xv_autopaint_colorkey", True)
 
 
     # #########################################################################
@@ -218,7 +219,7 @@
         self._vo.send_gui_data(xine.GUI_SEND_DRAWABLE_CHANGED, wid)
 
 
-    def configure_video(self, wid, size, aspect):
+    def configure_video(self, wid, size, aspect, colorkey):
         """
         Configure video output.
         """
@@ -237,6 +238,9 @@
             vo_kwargs = {'passthrough': 'none'}
             self._vo_visible = False
 
+        if colorkey is not None:
+            self._xine.set_config_value("video.device.xv_colorkey", colorkey)
+
         control_return = []
         self._vo = self._xine.open_video_driver(
             "kaa", control_return = control_return,

Modified: trunk/popcorn/src/backends/xine/player.py
==============================================================================
--- trunk/popcorn/src/backends/xine/player.py   (original)
+++ trunk/popcorn/src/backends/xine/player.py   Sun Feb 25 19:53:32 2007
@@ -230,7 +230,7 @@
                 elif self._xine_configured:
                     # No previous window, must reconfigure vo.
                     self._xine.configure_video(window.get_id(), 
window.get_size(),
-                                               self._get_aspect())
+                                               self._get_aspect(), 
config.video.colorkey)
 
         # Sends a window_changed command to slave.
         if window and self._xine:
@@ -245,9 +245,9 @@
         self._xine.set_config(config)
         if self._window:
             self._xine.configure_video(self._window.get_id(), 
self._window.get_size(),
-                                       self._get_aspect())
+                                       self._get_aspect(), 
config.video.colorkey)
         else:
-            self._xine.configure_video(None, None, None)
+            self._xine.configure_video(None, None, None, None)
         self._xine.configure_audio(config.audio.driver)
         self._xine.configure_stream(self._properties)
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to