Commit cbbe174a authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_instance.c: Listen to the variable changes.

parent fa2c1699
......@@ -395,6 +395,8 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi,
p_mi->p_md->p_input_item );
p_mi->i_input_id = p_input_thread->i_object_id;
var_AddCallback( p_input_thread, "state", input_state_changed, p_mi );
/* will be released in media_instance_release() */
vlc_object_yield( p_input_thread );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment