[vlc-devel] commit: config: on OS X, don't use required_argument for getopt_long, but optional_argument. (Derk-Jan Hartman )

Rémi Denis-Courmont rdenis at simphalempin.com
Tue Aug 12 15:28:14 CEST 2008


In Tue, 12 Aug 2008 13:12:26 +0200 (CEST), git at videolan.org (git version
control) wrote:
> vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Tue Aug
12
> 13:06:39 2008 +0200| [c4523879615f253b2f939df334d2ff9eff14e690] |
> committer: Derk-Jan Hartman
> 
> config: on OS X, don't use required_argument for getopt_long, but
> optional_argument.
> 
> required_argument is not implemented (behaves like optional_argument),
and
> actually crashes in some instances.
> This fixes a crash as detailed in #1681.
> The problem is filed with Apple as Radar ticket 6113829

This huge hack moves the problem around. Now, not only will VLC behave
weirdly on OSX, but it will crash if you fail to give the required
argument. You're better off using a proper getopt_long replacement IMHO.

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list