From: Thibaut M. <thi...@gm...> - 2005-02-10 14:12:46
|
On Thu, 10 Feb 2005 11:23:45 +0000, Matt Jarvis <ma...@ro...> wrote: > Hi Thibaut [...] > > Yes, we came to the same conclusion after poking around in the xine-lib > code. I did come across this thread on xine-devel from a long time ago : > > http://sourceforge.net/mailarchive/message.php?msg_id=2303982 > > I realise xine-lib will have changed a lot since then, but it seemed to > be similar to what we were seeing. In demux.c the pthread_join happens > in _x_demux_stop_thread, in our player we call xine_stop AFTER receiving > the end of stream event. Will that still ensure that pthread_join is > called and the terminated thread's resources are deallocated ? yes, that's a similar problem with the demuxer thread. try the 2 small patches attached (generated against xine-lib 1.0), i think that should fix your problem. I've not tested, i don't have access to a compiler. > Matt Thibaut |