[MPlayer-cvslog] r33768 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Wed Jun 29 12:05:32 CEST 2011
Author: ib
Date: Wed Jun 29 12:05:32 2011
New Revision: 33768
Log:
Move audio related code from guiSetVideo to guiSetAudio.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Wed Jun 29 11:12:03 2011 (r33767)
+++ trunk/gui/interface.c Wed Jun 29 12:05:32 2011 (r33768)
@@ -595,6 +595,22 @@ int guiGetEvent(int type, void *arg)
if (arg && !guiInfo.sh_video)
guiInfo.MovieWindow = False;
+ guiGetEvent(guiSetMixer, NULL);
+
+ if (gtkEnableAudioEqualizer) {
+ equalizer_t eq;
+ int i, j;
+
+ for (i = 0; i < 6; i++) {
+ for (j = 0; j < 10; j++) {
+ eq.channel = i;
+ eq.band = j;
+ eq.gain = gtkEquChannels[i][j];
+ gtkSet(gtkSetEqualizer, 0, &eq);
+ }
+ }
+ }
+
wsVisibleWindow(&guiApp.subWindow, (guiInfo.MovieWindow ? wsShowWindow : wsHideWindow));
break;
@@ -720,24 +736,6 @@ int guiGetEvent(int type, void *arg)
else
btnSet(evSetMoviePosition, btnReleased);
- // audio
-
- guiGetEvent(guiSetMixer, NULL);
-
- if (gtkEnableAudioEqualizer) {
- equalizer_t eq;
- int i, j;
-
- for (i = 0; i < 6; i++) {
- for (j = 0; j < 10; j++) {
- eq.channel = i;
- eq.band = j;
- eq.gain = gtkEquChannels[i][j];
- gtkSet(gtkSetEqualizer, 0, &eq);
- }
- }
- }
-
// subtitle
#ifdef CONFIG_DXR3
More information about the MPlayer-cvslog
mailing list