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 <thomas@gllm.fr>
Please register or sign in to comment