[vlc-devel] [PATCH] - Added input resource support to LibVLC Media Player
Pierre d'Herbemont
pdherbemont at gmail.com
Tue Aug 25 13:30:42 CEST 2009
Hello Niles,
On Aug 25, 2009, at 5:17 AM, Niles Bindel wrote:
> > If I recall well, you should be able to change that to an
> assert(p_input_thread->b_dead)
> >, because after vlc_thread_join(input) you should always be dead.
>
> Unfortunately, the thread join happens after the
> input_DetachResource which requires p_input_thread->b_dead to be
> true, so as far as I can see we need to sleep unless I'm missing
> something. Also, I initially tried it without the sleep and it
> didn't work right for me.
There seems to be no reason to put input_DetachResource() before the
vlc_thread_join().
Pierre.
More information about the vlc-devel
mailing list