[vlc-commits] Use $VLC_DATA_PATH on Linux too

Rémi Denis-Courmont git at videolan.org
Wed Mar 21 17:39:53 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 21 18:39:39 2012 +0200| [339e33b050d872adbaef4506fdb0c75ca8192ff7] | committer: Rémi Denis-Courmont

Use $VLC_DATA_PATH on Linux too

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

 src/posix/linux_specific.c |    4 ++++
 test/samples/empty.voc     |  Bin 26 -> 26 bytes
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/posix/linux_specific.c b/src/posix/linux_specific.c
index 78d9130..c31cbc2 100644
--- a/src/posix/linux_specific.c
+++ b/src/posix/linux_specific.c
@@ -77,6 +77,10 @@ error:
 
 char *config_GetDataDir (void)
 {
+    const char *path = getenv ("VLC_DATA_PATH");
+    if (path != NULL)
+        return strdup (path);
+
     char *libdir = config_GetLibDir ();
     if (libdir == NULL)
         return NULL; /* OOM */
diff --git a/test/samples/empty.voc b/test/samples/empty.voc
index ae564ba..277d9e9 100644
Binary files a/test/samples/empty.voc and b/test/samples/empty.voc differ



More information about the vlc-commits mailing list