X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=blobdiff_plain;f=src%2Finput%2Fvlm.c;h=17c38705a9ada59e2ee9efab938e4b01e90d1c4f;hp=d729ac6ac8e2f92303eb85cfac4c057d022c690e;hb=99aeeff1ac677cada137b5b5afc7a6e1a451adbb;hpb=877636c07b2393732b901cd1916a2c8c71573af7 diff --git a/src/input/vlm.c b/src/input/vlm.c index d729ac6ac8..17c38705a9 100644 --- a/src/input/vlm.c +++ b/src/input/vlm.c @@ -2500,7 +2500,7 @@ static int Manage( vlc_object_t* p_object ) { /* FIXME, find a way to select the right instance */ char buffer[12]; - sprintf( buffer, "%d", p_instance->i_index ); + sprintf( buffer, "%d", p_instance->i_index+1 ); vlm_MediaControl( vlm, p_media, p_instance->psz_name, "play", buffer ); } @@ -2509,8 +2509,8 @@ static int Manage( vlc_object_t* p_object ) if( vlm_MediaControl( vlm, p_media, p_instance->psz_name, "stop", 0 ) == VLC_SUCCESS ) { - j--; /* the aray is one element smaller now. */ - } + j--; /* the aray is one element smaller now. */ + } } } }