]> git.sesse.net Git - vlc/commitdiff
[PATCH] vlm: play command index same as inputdeln index from Ilkka Ollakka. Thanks.
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 21 Feb 2007 22:25:27 +0000 (22:25 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 21 Feb 2007 22:25:27 +0000 (22:25 +0000)
THANKS
src/input/vlm.c

diff --git a/THANKS b/THANKS
index 41fea5c6c3f844cdef25ec1439af0298668f9fdb..08e23a0da2271fa6683a83e7a40df7df3b523d0d 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -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
index 128cc455a05182eecf9fd62ab3ad3092fe097251..0d557c482ad21e86fa0a92f66dc27112853f97c0 100644 (file)
@@ -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 );