]> git.sesse.net Git - vlc/blobdiff - modules/control/http/macro.c
Spare 9 relocations
[vlc] / modules / control / http / macro.c
index 8dd01cef51593f41a0f350aaa2bb4b29792c4cea..7dde365b198104b2f8af2ccb12716aaa7de90db6 100644 (file)
@@ -530,11 +530,12 @@ static void MacroDo( httpd_file_sys_t *p_args,
                     vlc_object_kill( p_intf->p_libvlc );
                     break;
                 }
+#ifdef ENABLE_VLM
                 /* vlm */
                 case MVLC_VLM_NEW:
                 case MVLC_VLM_SETUP:
                 {
-                    static const char *vlm_properties[] =
+                    static const char vlm_properties[][9] =
                     {
                         /* no args */
                         "enabled", "disabled", "loop", "unloop",
@@ -679,7 +680,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
                     vlm_MessageDelete( vlm_answer );
                     break;
                 }
-
+#endif /* ENABLE_VLM */
                 default:
                     if( *control )
                     {
@@ -1043,12 +1044,14 @@ void Execute( httpd_file_sys_t *p_args,
                                                          p_intf->p_sys->p_input,
                                                          m.param2 );
                         }
+#ifdef ENABLE_VLM
                         else if( !strcmp( m.param2, "vlm" ) )
                         {
                             if( p_intf->p_sys->p_vlm == NULL )
                                 p_intf->p_sys->p_vlm = vlm_New( p_intf );
                             index = mvar_VlmSetNew( m.param1, p_intf->p_sys->p_vlm );
                         }
+#endif
 #if 0
                         else if( !strcmp( m.param2, "hosts" ) )
                         {