[vlc-devel] commit: Cosmetic ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue May 27 19:57:52 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue May 27 20:53:31 2008 +0300| [2d025a3b5dc7e8d0946c11be94e99617c2d41d0b]

Cosmetic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d025a3b5dc7e8d0946c11be94e99617c2d41d0b
---

 modules/control/http/macro.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/control/http/macro.c b/modules/control/http/macro.c
index 964f414..8dd01ce 100644
--- a/modules/control/http/macro.c
+++ b/modules/control/http/macro.c
@@ -534,12 +534,13 @@ static void MacroDo( httpd_file_sys_t *p_args,
                 case MVLC_VLM_NEW:
                 case MVLC_VLM_SETUP:
                 {
-                    static const char *vlm_properties[11] =
+                    static const char *vlm_properties[] =
                     {
                         /* no args */
                         "enabled", "disabled", "loop", "unloop",
                         /* args required */
-                        "input", "output", "option", "date", "period", "repeat", "append",
+                        "input", "output", "option", "date", "period",
+                        "repeat", "append", "",
                     };
                     vlm_message_t *vlm_answer;
                     char name[512];
@@ -565,7 +566,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
                         p += sprintf( psz, "setup %s", name );
                     }
                     /* Parse the request */
-                    for( i = 0; i < 11; i++ )
+                    for( i = 0; vlm_properties[i][0]; i++ )
                     {
                         char val[512];
                         ExtractURIValue( p_request,




More information about the vlc-devel mailing list