[mod_vlc] Resolve double mutex lock
This commit is contained in:
parent
739e770c34
commit
d5ad504723
|
@ -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);
|
||||
status = libvlc_media_get_state(context->m);
|
||||
}
|
||||
switch_mutex_lock(context->cond_mutex);
|
||||
|
||||
switch_mutex_unlock(context->cond_mutex);
|
||||
|
||||
if (context->err == 1) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "VLC error\n");
|
||||
|
|
Loading…
Reference in New Issue