Commit 69477405 authored by Committed by Thomas GuillemBrowse files
transcode: destroy the mutex and condition only if they have been initialized.
If i_threads == 0, both are not initialized as the function transcode_video_new returns before the call to vlc_mutex_init and vlc_cond_init. This patch fixes a deadlock on vlc_cond_destroy called with an uninitialized condition variable argument. Signed-off-by: Thomas Guillem <email@example.com>