]> git.sesse.net Git - vlc/commitdiff
rc control interface fix for correct reporting of playlist state when toggling pause.
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 28 Oct 2005 12:36:08 +0000 (12:36 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 28 Oct 2005 12:36:08 +0000 (12:36 +0000)
modules/control/rc.c

index df65801fc15838bf6926906edfbedebb230b2076..281ce5d8c989371c8eefe33561846925b6129ea2 100644 (file)
@@ -1065,9 +1065,8 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
     /* Parse commands that only require an input */
     if( !strcmp( psz_cmd, "pause" ) )
     {
-        val.i_int = PAUSE_S;
-
-        var_Set( p_input, "state", val );
+        val.i_int = config_GetInt( p_intf, "key-play-pause" );
+        var_Set( p_intf->p_vlc, "key-pressed", val );
         vlc_object_release( p_input );
         return VLC_SUCCESS;
     }