Mercurial > mplayer.hg
diff gui/interface.c @ 35535:dad7efd97bbb
Relocate mixer assignment.
It need to be set only during a GUI_SET_MIXER call.
author | ib |
---|---|
date | Sun, 09 Dec 2012 12:16:14 +0000 |
parents | 8ad4d2fb46e8 |
children | 82f34397ebdb |
line wrap: on
line diff
--- a/gui/interface.c Sun Dec 09 09:07:00 2012 +0000 +++ b/gui/interface.c Sun Dec 09 12:16:14 2012 +0000 @@ -352,9 +352,6 @@ plItem *next = NULL; int msg, state; - if (guiInfo.mpcontext) - mixer = mpctx_get_mixer(guiInfo.mpcontext); - switch (what) { case GUI_SET_CONTEXT: guiInfo.mpcontext = data; @@ -740,6 +737,10 @@ break; case GUI_SET_MIXER: + + if (guiInfo.mpcontext) + mixer = mpctx_get_mixer(guiInfo.mpcontext); + if (mixer) { float l, r; static float last_balance = -1;