[mod_vlc] Resolve double mutex lock

This commit is contained in:
Hadžem Hadžić 2024-04-18 11:06:40 +02:00 committed by GitHub
parent 739e770c34
commit d5ad504723
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1096,7 +1096,8 @@ static switch_status_t vlc_file_read(switch_file_handle_t *handle, void *data, s
switch_thread_cond_wait(context->cond, context->cond_mutex); switch_thread_cond_wait(context->cond, context->cond_mutex);
status = libvlc_media_get_state(context->m); status = libvlc_media_get_state(context->m);
} }
switch_mutex_lock(context->cond_mutex);
switch_mutex_unlock(context->cond_mutex);
if (context->err == 1) { if (context->err == 1) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "VLC error\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "VLC error\n");