[vlc-devel] [PATCH 1/3] Qt: Run mainloop on the main thread on OSX

Laurent Aimar fenrir at elivagar.org
Sun Aug 1 12:08:31 CEST 2010


> > Everything seemed to work fine when I tested, unless libvlc_Quit is called
> > during video playback as already mentioned before. That will give the good
> > old main interface destroyed before vout_window_Delete called issue:
> > 
> > Assertion failed: (!stable), function ~VideoWidget, file
> > ../../../../modules/gui/qt4/components/interface_widgets.cpp, line 81.
> 
> In principle, pl_Deactivate() will wait for the ongoing input to finish, and 
> release all the input "resources" (including the video window).
 Yes, it does.  pl_Deactivate ensures that the input and its associated
resources are freed.

> Only later intf_DestroyAll() will clean up all interfaces. Laurent can
> correct me if I am wrong.
 Yes, but when running on the main thread, I am not sure when the qt4
resources are released. If they are when the qt4 'run' function is stopped,
then at this pont pl_Deactivate has not be called.

-- 
fenrir



More information about the vlc-devel mailing list