Author: tack
Date: Tue Nov 28 21:40:08 2006
New Revision: 2107

Modified:
   trunk/popcorn/src/backends/mplayer/player.py

Log:
Fix osd_can_update() for mplayer backend; fix args when using gdb.


Modified: trunk/popcorn/src/backends/mplayer/player.py
==============================================================================
--- trunk/popcorn/src/backends/mplayer/player.py        (original)
+++ trunk/popcorn/src/backends/mplayer/player.py        Tue Nov 28 21:40:08 2006
@@ -541,7 +541,7 @@
         if USE_GDB:
             self._child_app = kaa.notifier.Process("gdb")
             self._child_app.start(self._mp_cmd)
-            self._child_app.write("run %s\n" % args)
+            self._child_app.write("run %s\n" % ' '.join(args))
         else:
             self._child_app = kaa.notifier.Process(self._mp_cmd)
             self._child_app.start(args)
@@ -642,6 +642,16 @@
         if not self._osd_shmem:
             return False
 
+        try:
+            if ord(self._osd_shmem.read(1)) == BUFFER_UNLOCKED:
+                return True
+        except shm.error:
+            self._osd_shmem.detach()
+            self._osd_shmem = None
+
+        return False
+
+
 
     def osd_update(self, alpha = None, visible = None, invalid_regions = None):
         """

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