[MPlayer-dev-eng] [PATCH] vo_macosx: process events with shared_buffer (and patch roundup)

Michael Guntsche mike at it-loops.com
Mon May 4 22:28:59 CEST 2009


On May 4, 2009, at 21:08, Adrian Stutz wrote:

>
> Though, on second thought, do we actually need the NSApp object in  
> case
> MPlayer is used only with shared_buffer as a background application?  
> Other
> unix background applications don't show up as unresponsive in OSX  
> even if
> they don't check the Cocoa event queue. If we remove the  
> NSApplicationLoad
> call for use with the shared_buffer option, then there's no need to  
> check
> the event queue either. As far I could gather, NSApp is only needed  
> for
> applications the user can actually interact with (has windows,  
> receives
> events) or that has a Cocoa run loop. Both cases don't apply to  
> MPlayer used
> with shared_buffer and testing showed no problems.
>

that's an even better solution Adrian.
Since we are only using NSApp now when we do not run with  
shared_buffer, I think we can get rid of NSApplicationLoad() as well.
NSApplication sharedApplication should be enough.

/Michael





More information about the MPlayer-dev-eng mailing list