]> git.sesse.net Git - vlc/commitdiff
"[PATCH] show input index-number in vlm show" by Ilkka Ollakka
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 4 May 2007 21:35:50 +0000 (21:35 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 4 May 2007 21:35:50 +0000 (21:35 +0000)
THANKS
src/input/vlm.c

diff --git a/THANKS b/THANKS
index 78cb3073b71b81132296944206ac31761042a3a9..88b2bcaee4798eae4ff8359d8ee87516384fd67a 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -81,7 +81,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, VLM play indexing start fix
+Ilkka Ollakka - SDP bitrate patch, various VLM fixes
 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 5c3ed8d4aee41adc630de384100f9c993ca89e78..64081ac92f16b706216581c1007ce9b857571179 100644 (file)
@@ -1373,7 +1373,13 @@ static vlm_message_t *vlm_ShowMedia( vlm_t *p_vlm, vlm_media_sys_t *p_media )
 
     p_msg_sub = vlm_MessageAdd( p_msg, vlm_MessageNew( "inputs", NULL ) );
     for( i = 0; i < p_cfg->i_input; i++ )
-        vlm_MessageAdd( p_msg_sub, vlm_MessageNew( p_cfg->ppsz_input[i], NULL ) );
+    {
+        char *psz_tmp;
+        asprintf( &psz_tmp, "%d", i+1 );
+        vlm_MessageAdd( p_msg_sub,
+                        vlm_MessageNew( psz_tmp, p_cfg->ppsz_input[i] ) );
+        free( psz_tmp );
+    }
 
     vlm_MessageAdd( p_msg,
                     vlm_MessageNew( "output", p_cfg->psz_output ? p_cfg->psz_output : "" ) );