[vlc-devel] [PATCH] vlm and vod preparsing

Rémi Denis-Courmont remi at remlab.net
Sat Sep 12 12:14:19 CEST 2009


Le vendredi 11 septembre 2009 12:41:48 Sébastien Escudier, vous avez écrit :
> - the first one replace the use of "while(condition) msleep()" by input
>  events

There is a small window of opportunity for a dead lock here. If you signal the 
condition while the VLM thread is not in vlc_cond_wait(), the wake up will be 
lost. Then the VLM thread will sleep for all eternity.

I guess we need semaphores in the thread subsystem.

> - the second one makes input preparsing faster if muxer is specified


-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list