Commit bd4bd54d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

qtcapture: Don't release objects when libvlc quit, else we may loose our main...

qtcapture: Don't release objects when libvlc quit, else we may loose our main thread, and dead lock.
parent 8d82c480
......@@ -317,10 +317,16 @@ static void Close( vlc_object_t *p_this )
demux_t *p_demux = (demux_t*)p_this;
demux_sys_t *p_sys = p_demux->p_sys;
/* Hack: if libvlc was killed, main interface thread was,
* and poor QTKit needs it, so don't tell him.
* Else we dead lock. */
if( vlc_object_alive(p_this->p_libvlc))
{
[p_sys->session stopRunning];
[p_sys->output release];
[p_sys->session release];
[p_sys->device release];
}
free( p_sys );
[pool release];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment