> If I recall well, you should be able to change that to an assert(p_input_thread->b_dead)<div id=":112" class="ii gt">>, because after vlc_thread_join(input) you should always be dead.</div><br>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.<br>
<br>Niles<br>