[MPlayer-dev-eng] [PATCH] vo_macosx: process events with shared_buffer (and patch roundup)
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
> MPlayer is used only with shared_buffer as a background application?
> 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
> call for use with the shared_buffer option, then there's no need to
> the event queue either. As far I could gather, NSApp is only needed
> applications the user can actually interact with (has windows,
> 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.
More information about the MPlayer-dev-eng