[MPlayer-dev-eng] [PATCH] [MPlayer OSX] Support open another file while playing
Ulion
ulion2002 at gmail.com
Tue Oct 23 17:01:40 CEST 2007
Hello,
Yes, it should support, but there's a bug make it not work on most time.
When playing a file, use MPlayer OSX to select another file for play,
current mplayer window will quit, bug new window will probably not
started for the new select file, at least on my iMac G5 mac os
10.4.10.
I found the reason: mplayerTerminated not be called before new mplayer
task launch, there's some delay for receiving this notify from
NSNotificationCenter or the previous mplayer NSTask not really
terminated until some little delay after call release method on it. So
after the new task launched, the old task still not finished, it even
output QUIT message cause MPlayer OSX remove it's output read
observer, that will cause new started mplayer instance blocked because
output buffer is always full.
To make new task not affect by previous task's notification, we need
to remove observers before start new task. Here's the patch.
--
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayerosx_reopen_fix.diff
Type: application/octet-stream
Size: 1191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071023/f8acfd22/attachment.obj>
More information about the MPlayer-dev-eng
mailing list