[vlc-devel] [PATCH 5/6] qt4: Run mainloop on the main thread on OSX
Rémi Denis-Courmont
remi at remlab.net
Sun Jul 25 18:06:27 CEST 2010
Le dimanche 25 juillet 2010 18:47:10 Juho Vähä-Herttua, vous avez écrit :
> I did it like this before, but then again I would like to be able to quit
> gracefully when the user selects "Quit VLC" option from the menu or from
> the icon popup menu.
That's only part of the problem. You should also be able to quit if something
other than the Qt4 interface calls libvlc_Quit().
> The b_run_on_first_thread hack does exactly this with
> its MonitorLibVLCDeath thread, allowing me to execute any code after
> libvlc_Quit() there. Without it the player just gets stuck forever in the
> Qt4 main loop with no one telling it to quit.
libvlc_SetExitHandler() does that in much cleaner manner.
--
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis
More information about the vlc-devel
mailing list