]> git.sesse.net Git - vlc/blobdiff - modules/control/http/http.c
Use config_GetDataDir() instead of DATA_PATH.
[vlc] / modules / control / http / http.c
index 661fb1fa2d3e1c17a3991c17c0b2077490a86ae0..6a0e593de2a4e7c560262c8fd38c1eb08f1f9163 100644 (file)
@@ -263,10 +263,14 @@ static int Open( vlc_object_t *p_this )
 
     if( ( psz_src == NULL ) || ( *psz_src == '\0' ) )
     {
-        static char const* ppsz_paths[] = {
+        const char *data_path = config_GetDataDir ();
+        char buf[strlen (data_path) + sizeof ("/http")];
+        snprintf (buf, sizeof (buf), "%s/http", data_path);
+
+        const char const* ppsz_paths[] = {
             "share/http",
             "../share/http",
-            DATA_PATH"/http",
+            buf,
             NULL
         };
         unsigned i;