diff mplayer.c @ 22286:a7e5b99ac083

Fix GUI compilation
author uau
date Wed, 21 Feb 2007 19:14:49 +0000
parents 5d12a6e96930
children da8ba4c0fc57
line wrap: on
line diff
--- a/mplayer.c	Wed Feb 21 19:08:00 2007 +0000
+++ b/mplayer.c	Wed Feb 21 19:14:49 2007 +0000
@@ -386,11 +386,26 @@
     return mpctx->video_out;
 }
 
+void *mpctx_get_audio_out(MPContext *mpctx)
+{
+    return mpctx->video_out;
+}
+
 void *mpctx_get_playtree_iter(MPContext *mpctx)
 {
     return mpctx->playtree_iter;
 }
 
+void *mpctx_get_mixer(MPContext *mpctx)
+{
+    return &mpctx->mixer;
+}
+
+void *mpctx_get_global_sub_size(MPContext *mpctx)
+{
+    return mpctx->global_sub_size;
+}
+
 static int is_valid_metadata_type (metadata_t type) {
   switch (type)
   {
@@ -2546,6 +2561,7 @@
 #ifdef HAVE_NEW_GUI
   if(use_gui){
        guiInit();
+       guiGetEvent(guiSetContext, mpctx);
        inited_flags|=INITED_GUI;
        guiGetEvent( guiCEvent,(char *)((gui_no_filename) ? 0 : 1) );
   }