]> git.sesse.net Git - vlc/blobdiff - src/input/vlmshell.c
VLM : add a dedicated mutex for the manage thread. We must not del callback while...
[vlc] / src / input / vlmshell.c
index 602530425217778aa434d0a869f2aa3439d75484..d2fcc54e78f515ac520481dcf0a91d4ce5e23721 100644 (file)
@@ -665,9 +665,10 @@ static int ExecuteScheduleProperty( vlm_t *p_vlm, vlm_schedule_sys_t *p_schedule
     }
     *pp_status = vlm_MessageSimpleNew( psz_cmd );
 
-    vlc_mutex_lock( &p_vlm->lock );
-    vlc_cond_signal( &p_vlm->wait );
-    vlc_mutex_unlock( &p_vlm->lock );
+    vlc_mutex_lock( &p_vlm->lock_manage );
+    p_vlm->input_state_changed = true;
+    vlc_cond_signal( &p_vlm->wait_manage );
+    vlc_mutex_unlock( &p_vlm->lock_manage );
 
     return VLC_SUCCESS;