Author: tack
Date: Thu Nov 30 15:23:57 2006
New Revision: 2130
Modified:
trunk/popcorn/src/generic.py
Log:
Iterate over copy of pending list since we remove from it; allow STATE_IDLE as
a state for _create_player(), add required states to set_frame_output_mode.
Modified: trunk/popcorn/src/generic.py
==============================================================================
--- trunk/popcorn/src/generic.py (original)
+++ trunk/popcorn/src/generic.py Thu Nov 30 15:23:57 2006
@@ -222,14 +222,14 @@
self._blocked = True
# Iterate through all pending commands and execute the ones that can
# be called in our new state.
- for states, callback in self._pending:
+ for states, callback in self._pending[:]:
if self.get_state() in states:
callback()
self._pending.remove((states, callback))
self._blocked = False
- @required_states(STATE_NOT_RUNNING, STATE_SHUTDOWN)
+ @required_states(STATE_NOT_RUNNING, STATE_IDLE)
def _create_player(self, cls):
"""
Create a player based on cls.
@@ -548,6 +548,7 @@
# For CAP_CANVAS
+ @required_states(STATE_IDLE, STATE_OPENING, STATE_OPEN, STATE_PLAYING,
STATE_PAUSED)
def set_frame_output_mode(self, vo = None, notify = None, size = None):
"""
Controls if and how frames are delivered via the 'frame' signal, and
-------------------------------------------------------------------------
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