[vlc-commits] osdmenu: fix data path on Linux
Rémi Denis-Courmont
git at videolan.org
Thu Jul 21 22:40:04 CEST 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 21 23:34:53 2011 +0300| [419c8c1be2a457d263cc53e2acafa10418347610] | committer: Rémi Denis-Courmont
osdmenu: fix data path on Linux
(cherry picked from commit d5ba5978a00fb73346e838e90df4d7ca51566c31)
Conflicts:
modules/video_filter/Modules.am
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=419c8c1be2a457d263cc53e2acafa10418347610
---
modules/video_filter/Modules.am | 9 ++++++++-
modules/video_filter/osdmenu.c | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/modules/video_filter/Modules.am b/modules/video_filter/Modules.am
index c07f263..afa6330 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am
@@ -1,4 +1,5 @@
SUBDIRS = dynamicoverlay
+
SOURCES_mosaic = mosaic.c mosaic.h
SOURCES_transform = transform.c
SOURCES_invert = invert.c
@@ -17,7 +18,13 @@ SOURCES_marq = marq.c
SOURCES_rss = rss.c
SOURCES_motiondetect = motiondetect.c
SOURCES_rv32 = rv32.c
-SOURCES_osdmenu = osdmenu.c
+
+libosdmenu_plugin_la_SOURCES = osdmenu.c
+libosdmenu_plugin_la_CFLAGS = $(AM_CFLAGS) -DPKGDATADIR=\"$(vlcdatadir)\"
+libosdmenu_plugin_la_LIBADD = $(AM_LIBADD)
+libosdmenu_plugin_la_DEPENDENCIES =
+EXTRA_LTLIBRARIES += libosdmenu_plugin.la
+
SOURCES_remoteosd = remoteosd.c remoteosd_rfbproto.h
SOURCES_magnify = magnify.c
SOURCES_wave = wave.c
diff --git a/modules/video_filter/osdmenu.c b/modules/video_filter/osdmenu.c
index 377f740..ff360c8 100644
--- a/modules/video_filter/osdmenu.c
+++ b/modules/video_filter/osdmenu.c
@@ -105,7 +105,7 @@ static int MouseEvent( vlc_object_t *, char const *,
#if defined( WIN32 ) || defined( UNDER_CE )
#define OSD_DEFAULT_CFG "osdmenu/default.cfg"
#else
-#define OSD_DEFAULT_CFG "share/osdmenu/default.cfg"
+#define OSD_DEFAULT_CFG PKGDATADIR"osdmenu/default.cfg"
#endif
#define OSD_UPDATE_MIN 0
More information about the vlc-commits
mailing list