changeset 30558:71acebef19ec

Fix win32 gui compilation.
author reimar
date Tue, 16 Feb 2010 19:07:06 +0000
parents 74a6c2a3dcce
children 10b0a635293b
files gui/win32/gui.c gui/win32/gui.h gui/win32/interface.c gui/win32/preferences.c gui/win32/wincfg.c
diffstat 5 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/gui.c	Tue Feb 16 16:32:38 2010 +0000
+++ b/gui/win32/gui.c	Tue Feb 16 19:07:06 2010 +0000
@@ -40,6 +40,7 @@
 #include "stream/stream.h"
 #include "libvo/video_out.h"
 #include "gui/interface.h"
+#include "gui/mplayer/gmplayer.h"
 #include "gui.h"
 #include "dialogs.h"
 
--- a/gui/win32/gui.h	Tue Feb 16 16:32:38 2010 +0000
+++ b/gui/win32/gui.h	Tue Feb 16 19:07:06 2010 +0000
@@ -105,7 +105,6 @@
 int create_subwindow(gui_t *gui, char *skindir);
 int parse_filename(char *file, play_tree_t *playtree, m_config_t *mconfig, int clear);
 void capitalize(char *filename);
-int import_playtree_playlist_into_gui(play_tree_t *my_playtree, m_config_t *config);
 
 /* Dialogs */
 void display_playlistwindow(gui_t *gui);
--- a/gui/win32/interface.c	Tue Feb 16 16:32:38 2010 +0000
+++ b/gui/win32/interface.c	Tue Feb 16 19:07:06 2010 +0000
@@ -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 @@
 
     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 @@
                     mygui->uninit(mygui);
                     free(mygui);
                     mygui = NULL;
-                    exit_player("Done");
+                    exit_player(EXIT_QUIT);
                     return 0;
                 }
                 case MP_CMD_GUI_STOP:
--- a/gui/win32/preferences.c	Tue Feb 16 16:32:38 2010 +0000
+++ b/gui/win32/preferences.c	Tue Feb 16 19:07:06 2010 +0000
@@ -30,6 +30,7 @@
 #include "libvo/video_out.h"
 #include "libao2/audio_out.h"
 #include "mixer.h"
+#include "gui/mplayer/gmplayer.h"
 #include "gui/interface.h"
 #include "gui.h"
 #include "mp_msg.h"
--- a/gui/win32/wincfg.c	Tue Feb 16 16:32:38 2010 +0000
+++ b/gui/win32/wincfg.c	Tue Feb 16 19:07:06 2010 +0000
@@ -32,6 +32,7 @@
 #include "m_option.h"
 #include "libvo/video_out.h"
 #include "mixer.h"
+#include "gui/mplayer/gmplayer.h"
 #include "gui/interface.h"
 #include "gui.h"