[vlc-devel] PATCH: OS X remove the use of setjmp()/longjmp()

Dilaroga dev dilaroga at gmail.com
Wed Jun 30 13:33:57 CEST 2010


2009/12/26 Pierre d'Herbemont <pdherbemont at free.fr>

> On Sat, Dec 26, 2009 at 4:52 PM, Brian Weaver <cmdrclueless at gmail.com>
> wrote:
> > It should if it did before; from a logical perspective it works the
> > same as before. Previously the code was using setjmp()/longjmp() to
> > return control back to the caller of NSApp run(). By invoking the
> > 'stop' selector instead of 'quit' the Cocoa framework will return
> > control after processing the stop event. It accomplishes the same end
> > result, but avoid any potential side effects from using jump routines
> > in a managed run time environment.
>
> Sure, but when you select the Quit menu from the Dock it sends a -(id)
> terminate:, so you'll need to send a -stop from here. Or so I believe,
> that was the question asked :-)
>
> You're right, and the libvlc does not exit properly (ML is not saved :
#3825).
Unfortunately, we are not able to change the action-method sent by this
standard menu item.
In attachment i provided a patch that overrides the terminate: method to
call a stop:.

--
Sebastien Zwickert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100630/bdab697c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MacOS-fixes-3825.-Since-af97f24d528acab89969d6541.patch
Type: application/octet-stream
Size: 1067 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100630/bdab697c/attachment.obj>


More information about the vlc-devel mailing list