[vlc-devel] [PATCH 2/2] libvlc:tests: use realpath for the modules path
Steve Lhomme
robux4 at videolabs.io
Thu Sep 15 10:08:35 CEST 2016
LoadLibraryEx doesn't like that kind of relative path
---
test/libvlc/test.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/test/libvlc/test.h b/test/libvlc/test.h
index 4e8356a..38c080e 100644
--- a/test/libvlc/test.h
+++ b/test/libvlc/test.h
@@ -68,6 +68,15 @@ static inline void test_init (void)
{
(void)test_default_sample; /* This one may not be used */
alarm (10); /* Make sure "make check" does not get stuck */
+#ifdef _WIN32
+ char *psz_modules = realpath( "../modules", NULL );
+ if ( psz_modules != NULL )
+ {
+ setenv( "VLC_PLUGIN_PATH", psz_modules, 1 );
+ free( psz_modules );
+ }
+ else
+#endif
setenv( "VLC_PLUGIN_PATH", "../modules", 1 );
}
--
2.8.2
More information about the vlc-devel
mailing list