+
+ // We have ourselves been triggering the stop event.
+ // No need to wake up our manage thread, because
+ // we'll join it just after the Stop().
+ vlc_mutex_lock( &p_input->p->lock_control );
+ bool abort = p_input->p->b_abort;
+ vlc_mutex_unlock( &p_input->p->lock_control );
+
+ if (abort)
+ return VLC_SUCCESS;
+
+ vlc_mutex_lock( &p_vlm->lock );
+ vlc_cond_signal( &p_vlm->wait );
+ vlc_mutex_unlock( &p_vlm->lock );