macosx_finder_args: add SDL specific code path
commit34bcde4156c0091c97767d829b76b5e5b95109b8
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Sat, 21 Jul 2012 07:46:15 +0000 (21 09:46 +0200)
committerUoti Urpala <uau@mplayer2.org>
Fri, 10 Aug 2012 20:15:05 +0000 (10 23:15 +0300)
tree0ed83fb214904ecea2969310b1b058234fe2a159
parent664774a890bfeeba2ad0a0c34b3df0e53dfcb7f7
macosx_finder_args: add SDL specific code path

SDL bootstrap code (include SDL.h in mplayer.c) creates its own minimal
Cocoa Application and creates a new argv to abstract away OSX specific
stuff (like -psn). For this reason the original code was not entering the
correct code path. This resulted in mplayer2 spamming to system.log.

Add a different code path to handle the case where SDL boostrap code ran.

Also, sort the files by filename for both SDL and no-SDL code paths: when
files are double clicked or drag and dropped to the mplayer2 icon they can
be in random order. Opening them with command + down arrow already
worked correctly.
osdep/macosx_finder_args.m