From 0a55a9b33d1111fc991b67ec33c2fda9b4087c23 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 14 May 2012 07:38:21 +0000 Subject: [PATCH] - commented out some useless code because of how bad windows handles environment vars --- source/shared_lib/sources/graphics/video_player.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/sources/graphics/video_player.cpp b/source/shared_lib/sources/graphics/video_player.cpp index e3fb41685..62f3db21c 100644 --- a/source/shared_lib/sources/graphics/video_player.cpp +++ b/source/shared_lib/sources/graphics/video_player.cpp @@ -189,10 +189,12 @@ void VideoPlayer::PlayVideo() { bool successLoadingVLC = false; #ifdef HAS_LIBVLC /* - * Initialise libVLC + * Initialize libVLC */ if(verboseEnabled) printf("Trying [%s]\n",getenv("VLC_PLUGIN_PATH")); libvlc = libvlc_new(vlc_argc, &vlc_argv[0]); + +/* It is meaningless to try all this because we have to restart mg to pickup new env vars #if defined(WIN32) if(libvlc == NULL) { // For windows check registry for install path @@ -239,6 +241,7 @@ void VideoPlayer::PlayVideo() { } } #endif +*/ if(libvlc != NULL) { m = libvlc_media_new_path(libvlc, filename.c_str());