Jason Tackaberry wrote:
> -        while self._pending and self.get_state() in self._pending[0][0]:
> -            self._pending.pop(0)[1]()
> +        # Iterate through all pending commands and execute the ones that can
> +        # be called in our new state.
> +        for states, callback in self._pending:
> +            if self.get_state() in states:
> +                callback()
> +                self._pending.remove((states, callback))
>          self._blocked = False

I want to keep the order of the commands. And you need to copy
self._pending if you remove in it.

> -    @required_states(STATE_OPEN, STATE_PLAYING, STATE_PAUSED)
> +    @required_states(STATE_PLAYING, STATE_PAUSED)
>      def seek(self, value, type=SEEK_RELATIVE):

I want to seek between open and play. This is needed for resume.



Dischi

-- 
Veni, Vidi, VISA:
        I came, I saw, I did a little shopping.

Attachment: pgp8Gz9geDV0Z.pgp
Description: PGP signature

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