From: Pierre d'Herbemont Date: Mon, 7 Jan 2008 15:49:39 +0000 (+0000) Subject: control/media_instance.c: Make sure the toggling the of the pause status implies... X-Git-Tag: 0.9.0-test0~3587 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=b99b8b1a4494ead54e3e099b2781f306b4f0b02d;p=vlc control/media_instance.c: Make sure the toggling the of the pause status implies a right "state" callback. --- diff --git a/src/control/media_instance.c b/src/control/media_instance.c index f56c7af370..ce64024f8e 100644 --- a/src/control/media_instance.c +++ b/src/control/media_instance.c @@ -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 ); }