Author: dmeyer
Date: Mon Jan 1 20:15:19 2007
New Revision: 2319
Modified:
trunk/popcorn/src/backends/mplayer/player.py
Log:
not not react on EOF, wait for the dead process
Modified: trunk/popcorn/src/backends/mplayer/player.py
==============================================================================
--- trunk/popcorn/src/backends/mplayer/player.py (original)
+++ trunk/popcorn/src/backends/mplayer/player.py Mon Jan 1 20:15:19 2007
@@ -296,8 +296,15 @@
elif line.startswith("EOF code"):
if self._state in (STATE_PLAYING, STATE_PAUSED):
- self._state = STATE_IDLE
-
+ # The player may be idle bow, but we can't set the
+ # state. If we do, generic will start a new file while
+ # the mplayer process is still running and that does
+ # not work. Unless we reuse mplayer proccesses we
+ # don't react on EOF and only handle the dead
+ # proccess.
+ # self._state = STATE_IDLE
+ pass
+
elif line.startswith("Parsing input") and self._window and \
self._state == STATE_OPEN:
# Delete the temporary key input file.
@@ -341,8 +348,7 @@
Open mrl.
"""
if self.get_state() != STATE_NOT_RUNNING:
- print 'Error: not idle'
- return False
+ raise RuntimeError('mplayer not in STATE_NOT_RUNNING')
scheme, path = parse_mrl(mrl)
-------------------------------------------------------------------------
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