From 883cc45e4791c8f796de86e31fe72e5a6deae709 Mon Sep 17 00:00:00 2001 From: Tim Champagne Date: Tue, 6 May 2003 14:02:24 +0000 Subject: This is some general Win32 cleanup and getting ready for DVD support. CVS patchset: 4779 CVS date: 2003/05/06 14:02:24 --- win32/source/xineui.cpp | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'win32/source') diff --git a/win32/source/xineui.cpp b/win32/source/xineui.cpp index 62a82f26f..ae557ef40 100644 --- a/win32/source/xineui.cpp +++ b/win32/source/xineui.cpp @@ -21,8 +21,10 @@ * by Matthew Grooms */ +#include #include "xineui.h" -#include "common.h" + +#include /* pthread_mutex_init() */ /* #define LOG 1 @@ -32,7 +34,6 @@ static char **video_driver_ids; static char **audio_driver_ids; - static void config_update(xine_cfg_entry_t *entry, int type, int min, int max, int value, char *string) { @@ -468,6 +469,9 @@ bool _XINE_UI::InitXine() /*config = config_file_init( configfile );*/ #else + + setenv("HOME", xine_get_homedir(), 0); + /* * Initialize config */ @@ -759,8 +763,23 @@ bool _XINE_UI::Play( int newindex ) // store our new mrl info - mrl_short_name = playlist[ playindex ]->mrl_short_name; +#if (1) + mrl_long_name = strdup("file:"); + strcat(mrl_long_name, playlist[ playindex ]->mrl_long_name); + + /* This will be used for DVD playing! */ + /*mrl_long_name = strdup("dvd:/");*/ + + /* DVD Drive */ + /*strcat(mrl_long_name, "d:\\\\1.1");*/ + + /* \\Title.Part */ + /*strcat(mrl_long_name, "1.1");*/ +#else mrl_long_name = playlist[ playindex ]->mrl_long_name; +#endif + + mrl_short_name = playlist[ playindex ]->mrl_short_name; mrl_type = playlist[ playindex ]->mrl_type; // play our mrl -- cgit v1.2.3