mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 08:52:49 +02:00
- commented out some useless code because of how bad windows handles environment vars
This commit is contained in:
@@ -189,10 +189,12 @@ void VideoPlayer::PlayVideo() {
|
|||||||
bool successLoadingVLC = false;
|
bool successLoadingVLC = false;
|
||||||
#ifdef HAS_LIBVLC
|
#ifdef HAS_LIBVLC
|
||||||
/*
|
/*
|
||||||
* Initialise libVLC
|
* Initialize libVLC
|
||||||
*/
|
*/
|
||||||
if(verboseEnabled) printf("Trying [%s]\n",getenv("VLC_PLUGIN_PATH"));
|
if(verboseEnabled) printf("Trying [%s]\n",getenv("VLC_PLUGIN_PATH"));
|
||||||
libvlc = libvlc_new(vlc_argc, &vlc_argv[0]);
|
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 defined(WIN32)
|
||||||
if(libvlc == NULL) {
|
if(libvlc == NULL) {
|
||||||
// For windows check registry for install path
|
// For windows check registry for install path
|
||||||
@@ -239,6 +241,7 @@ void VideoPlayer::PlayVideo() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
if(libvlc != NULL) {
|
if(libvlc != NULL) {
|
||||||
m = libvlc_media_new_path(libvlc, filename.c_str());
|
m = libvlc_media_new_path(libvlc, filename.c_str());
|
||||||
|
Reference in New Issue
Block a user