diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2004-04-06 19:20:15 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2004-04-06 19:20:15 +0000 |
commit | 21aa4eed6d0e90f9a9b548c1adaad7dccf2f4862 (patch) | |
tree | b76be854bb41e0b0469dca57ec4100aeff99504c /win32/source | |
parent | 81de862996c8af79e73f550b0160e9c091722a71 (diff) | |
download | xine-lib-21aa4eed6d0e90f9a9b548c1adaad7dccf2f4862.tar.gz xine-lib-21aa4eed6d0e90f9a9b548c1adaad7dccf2f4862.tar.bz2 |
Prepare for MinGW port:
move M$VC specific header files into sparate directory
regenerate config.h for M$VC
compilation fixes
add some getchar()s into xineui.exe (popup dialogs would be better)
CVS patchset: 6338
CVS date: 2004/04/06 19:20:15
Diffstat (limited to 'win32/source')
-rw-r--r-- | win32/source/xineui.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/win32/source/xineui.cpp b/win32/source/xineui.cpp index 30ecfd89a..ef0373c86 100644 --- a/win32/source/xineui.cpp +++ b/win32/source/xineui.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2001 the xine project + * Copyright (C) 2000-2004 the xine project * * This file is part of xine for win32 video player. * @@ -106,7 +106,7 @@ static xine_video_port_t *load_video_out_driver(int driver_number, win32_visual_ /* video output driver auto-probing */ const char *const *driver_ids; int i; - + if((!strcasecmp(video_driver_ids[driver_num], "none")) || (!strcasecmp(video_driver_ids[driver_num], "null"))) { @@ -120,7 +120,7 @@ static xine_video_port_t *load_video_out_driver(int driver_number, win32_visual_ } else if(strcasecmp(video_driver_ids[driver_num], "auto")) { - + vis = (win32_visual_t *) xine_xmalloc(sizeof(win32_visual_t)); video_port = xine_open_video_driver(gGui->xine, video_driver_ids[driver_num], @@ -135,9 +135,8 @@ static xine_video_port_t *load_video_out_driver(int driver_number, win32_visual_ */ i = 0; driver_ids = xine_list_video_output_plugins (gGui->xine); - while (driver_ids[i]) { - + printf (("main: probing <%s> video output plugin\n"), driver_ids[i]); /*vis = (win32_visual_t *) xine_xmalloc(sizeof(win32_visual_t));*/ @@ -155,9 +154,10 @@ static xine_video_port_t *load_video_out_driver(int driver_number, win32_visual_ i++; } - + if (!video_port) { printf (("main: all available video drivers failed.\n")); + getchar(); exit (1); } @@ -190,6 +190,7 @@ static xine_video_port_t *load_video_out_driver(int driver_number, win32_visual_ if(!video_port) { printf (("main: video driver <%s> failed\n"), video_driver_ids[driver_number]); + getchar(); exit (1); } @@ -289,6 +290,7 @@ static xine_audio_port_t *load_audio_out_driver(int driver_number) { if (!audio_port) { printf (("main: audio driver <%s> failed\n"), audio_driver_ids[driver_number]); + getchar(); exit (1); } @@ -504,7 +506,6 @@ bool _XINE_UI::InitXine() } #endif - gGui->xine = xine_new(); xine_config_load(gGui->xine, gGui->configfile); @@ -530,7 +531,6 @@ bool _XINE_UI::InitXine() */ xine_init(gGui->xine); - /* * load and init output drivers */ @@ -539,9 +539,9 @@ bool _XINE_UI::InitXine() { const char *const *vids = xine_list_video_output_plugins(gGui->xine); int i = 0; - + while(vids[i++]); - + video_driver_ids = (char **) xine_xmalloc(sizeof(char *) * (i + 1)); i = 0; video_driver_ids[i] = strdup("auto"); @@ -549,7 +549,7 @@ bool _XINE_UI::InitXine() video_driver_ids[i + 1] = strdup(vids[i]); i++; } - + video_driver_ids[i + 1] = NULL; if(video_driver_id) { @@ -561,8 +561,8 @@ bool _XINE_UI::InitXine() } } gGui->vo_port = load_video_out_driver(driver_num, &win32_visual); - } - + } + { xine_cfg_entry_t cfg_vo_entry; |