Author: dmeyer
Date: Thu Nov 30 18:29:05 2006
New Revision: 2138
Modified:
trunk/popcorn/src/generic.py
Log:
handle double stop to be save
Modified: trunk/popcorn/src/generic.py
==============================================================================
--- trunk/popcorn/src/generic.py (original)
+++ trunk/popcorn/src/generic.py Thu Nov 30 18:29:05 2006
@@ -288,11 +288,14 @@
self._player.play()
- @required_states(STATE_PLAYING, STATE_PAUSED)
+ @required_states(STATE_PLAYING, STATE_PAUSED, STATE_STOPPING)
def stop(self):
"""
Stop playback.
"""
+ if self._get_state() == STATE_STOPPING:
+ # ignore this stop() call
+ return
# FIXME: handle player that are in a deadlock and do not
# want to be killed.
self._player.stop()
-------------------------------------------------------------------------
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