[vlc-devel] [PATCH] chromaprint: add fingerprinter module

Rémi Denis-Courmont remi at remlab.net
Thu Nov 22 21:56:02 CET 2012


Le jeudi 22 novembre 2012 22:47:50, Francois Cartegnie a écrit :
> +            mtime_t timeout = mdate() + 50000;
> +            vlc_mutex_lock( &wait.lock );
> +            vlc_cond_timedwait( &wait.cond, &wait.lock, timeout );
> +            vlc_mutex_unlock( &wait.lock );

Two anti-patterns in four lines. You cannot be serious.

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



More information about the vlc-devel mailing list