Commit c8fdee00 authored by Antoine Cellerier's avatar Antoine Cellerier

[PATCH] vlm: play command index same as inputdeln index from Ilkka Ollakka. Thanks.

parent 47a67b90
......@@ -79,7 +79,7 @@ Haakon Meland Eriksen - Norwegian translation
Han HoJoong <0demon0 at paran dot com> - Korean translation
Hans-Peter Jansen <hpj at urpla.net> - patch for module options handling
Igor Helman - VLM msecseek command
Ilkka Ollakka - SDP bitrate patch
Ilkka Ollakka - SDP bitrate patch, VLM play indexing start fix
Jan Gerber <j at v2v dot org> - patch theora decoding aspect ratio
Jan Van Boghout <vlc at macrabbit.com> - iTunes like slider for OSX intf
Javier Varela <tonxabar at hotmail.com> - Spanish translation
......
......@@ -1228,9 +1228,9 @@ int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, const char *psz_id,
TAB_APPEND( media->i_instance, media->instance, p_instance );
}
if( ( psz_args && sscanf(psz_args, "%d", &i) == 1 ) && ( i < media->i_input ) )
if( ( psz_args && sscanf(psz_args, "%d", &i) == 1 ) && && i > 0 && i-1 < media->i_input )
{
p_instance->i_index = i;
p_instance->i_index = i-1;
}
if( p_instance->item.psz_uri ) free( p_instance->item.psz_uri );
......
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