summaryrefslogtreecommitdiffstats
path: root/gui/win32/interface.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-16 19:07:06 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-16 19:07:06 +0000
commitff8c0443186d870b70b6729d47ab548894b13f3c (patch)
treec7639d8377c74947f76d4c51ae2dec230ee835a3 /gui/win32/interface.c
parent2c8f5fa622f0ff1a9186a26deada9b3e72603e49 (diff)
downloadmpv-ff8c0443186d870b70b6729d47ab548894b13f3c.tar.bz2
mpv-ff8c0443186d870b70b6729d47ab548894b13f3c.tar.xz
Fix win32 gui compilation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30600 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui/win32/interface.c')
-rw-r--r--gui/win32/interface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/win32/interface.c b/gui/win32/interface.c
index 209a1889d4..d74c76a356 100644
--- a/gui/win32/interface.c
+++ b/gui/win32/interface.c
@@ -39,14 +39,15 @@
#include "libvo/video_out.h"
#include "libao2/audio_out.h"
#include "access_mpcontext.h"
+#include "libmpcodecs/vd.h"
+#include "gui/mplayer/gmplayer.h"
+#include "mp_core.h"
#include "gui.h"
#include "dialogs.h"
#ifdef CONFIG_LIBCDIO
#include <cdio/cdio.h>
#endif
-extern int abs_seek_pos;
-extern float rel_seek_secs;
extern int vcd_track;
extern af_cfg_t af_cfg;
int guiWinID = 0;
@@ -466,7 +467,7 @@ static unsigned __stdcall GuiThread(void* param)
if(!skinName) skinName = strdup("Blue");
if(!mygui) mygui = create_gui(get_path("skins"), skinName, guiSetEvent);
- if(!mygui) exit_player("Unable to load GUI.");
+ if(!mygui) exit_player(EXIT_ERROR);
if(autosync && autosync != gtkAutoSync)
{
@@ -683,7 +684,7 @@ int guiGetEvent(int type, char *arg)
mygui->uninit(mygui);
free(mygui);
mygui = NULL;
- exit_player("Done");
+ exit_player(EXIT_QUIT);
return 0;
}
case MP_CMD_GUI_STOP: