Author: dmeyer
Date: Sun Oct 21 15:01:36 2007
New Revision: 10012

Log:
fix event handling when in background

Modified:
   trunk/ui/src/audio/player.py

Modified: trunk/ui/src/audio/player.py
==============================================================================
--- trunk/ui/src/audio/player.py        (original)
+++ trunk/ui/src/audio/player.py        Sun Oct 21 15:01:36 2007
@@ -104,8 +104,10 @@
 
         # Open media item and start playback
         self.player.open(self.item.url)
-        self.player.signals['end'].connect_once(PLAY_END.post, self.item)
-        self.player.signals['start'].connect_once(PLAY_START.post, self.item)
+        event = Event(PLAY_END, handler=self.eventhandler)
+        self.player.signals['end'].connect_once(event.post, self.item)
+        event = Event(PLAY_START, handler=self.eventhandler)
+        self.player.signals['start'].connect_once(event.post, self.item)
         self.player.play()
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to