summaryrefslogtreecommitdiff
path: root/win32/source
diff options
context:
space:
mode:
authorTim Champagne <tchamp@users.sourceforge.net>2003-05-06 14:02:24 +0000
committerTim Champagne <tchamp@users.sourceforge.net>2003-05-06 14:02:24 +0000
commit883cc45e4791c8f796de86e31fe72e5a6deae709 (patch)
tree6a72b90346d9ce418d140588b78e9674ccc2f321 /win32/source
parent476abbd3d2c89c3951d9144f2f483e9d9e551a75 (diff)
downloadxine-lib-883cc45e4791c8f796de86e31fe72e5a6deae709.tar.gz
xine-lib-883cc45e4791c8f796de86e31fe72e5a6deae709.tar.bz2
This is some general Win32 cleanup and getting ready for DVD support.
CVS patchset: 4779 CVS date: 2003/05/06 14:02:24
Diffstat (limited to 'win32/source')
-rw-r--r--win32/source/xineui.cpp25
1 files changed, 22 insertions, 3 deletions
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 <elon@altavista.com>
*/
+#include <xinesuppt.h>
#include "xineui.h"
-#include "common.h"
+
+#include <pthread.h> /* 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