[MPlayer-cvslog] r33481 - trunk/gui/interface.c

reimar subversion at mplayerhq.hu
Sun May 22 13:20:08 CEST 2011


Author: reimar
Date: Sun May 22 13:20:07 2011
New Revision: 33481

Log:
Use mixer directly without checking for an audio_out.
If this cases issues, the mixer behaviour should be changed
to include any necessary special-cases.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sun May 22 13:16:19 2011	(r33480)
+++ trunk/gui/interface.c	Sun May 22 13:20:07 2011	(r33481)
@@ -32,7 +32,6 @@
 #include "help_mp.h"
 #include "input/input.h"
 #include "libaf/equalizer.h"
-#include "libao2/audio_out.h"
 #include "libmpcodecs/dec_audio.h"
 #include "libmpcodecs/dec_video.h"
 #include "libmpcodecs/vd.h"
@@ -553,7 +552,6 @@ static void add_vf(char *str)
 
 int guiGetEvent(int type, void *arg)
 {
-    const ao_functions_t *audio_out = NULL;
     mixer_t *mixer = NULL;
 
     stream_t *stream = arg;
@@ -563,7 +561,6 @@ int guiGetEvent(int type, void *arg)
 #endif
 
     if (guiIntfStruct.mpcontext) {
-        audio_out = mpctx_get_audio_out(guiIntfStruct.mpcontext);
         mixer     = mpctx_get_mixer(guiIntfStruct.mpcontext);
     }
 
@@ -705,7 +702,7 @@ int guiGetEvent(int type, void *arg)
         break;
 
     case guiSetVolume:
-        if (audio_out) {
+        if (mixer) {
             float l, r;
 
             mixer_getvolume(mixer, &l, &r);
@@ -746,7 +743,7 @@ int guiGetEvent(int type, void *arg)
 
         // audio
 
-        if (audio_out) {
+        if (mixer) {
             float l, r;
 
             mixer_getvolume(mixer, &l, &r);


More information about the MPlayer-cvslog mailing list