# HG changeset patch # User ib # Date 1355055374 0 # Node ID dad7efd97bbbb43950a062de01e22e175e0b5a76 # Parent 4cdbc26e4191e3e161bb2c06e03c9e0c26f47e29 Relocate mixer assignment. It need to be set only during a GUI_SET_MIXER call. diff -r 4cdbc26e4191 -r dad7efd97bbb gui/interface.c --- 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;