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

control/media_instance.c: Make sure the toggling the of the pause status...

control/media_instance.c: Make sure the toggling the of the pause status implies a right "state" callback.
parent d057091d
......@@ -546,7 +546,10 @@ void libvlc_media_instance_pause( libvlc_media_instance_t *p_mi,
if( !p_input_thread )
return;
input_Control( p_input_thread, INPUT_SET_STATE, PAUSE_S );
if( var_GetInteger( p_input_thread, "state" ) == PAUSE_S )
input_Control( p_input_thread, INPUT_SET_STATE, PLAYING_S );
else
input_Control( p_input_thread, INPUT_SET_STATE, PAUSE_S );
vlc_object_release( 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