add event handler for MPD_IDLE_OUTPUT notification

This commit is contained in:
Andrzej Rybczak
2009-10-27 02:30:28 +01:00
parent e43ea18d29
commit 95ce4065ae
7 changed files with 36 additions and 25 deletions

View File

@@ -30,6 +30,7 @@
#include "helpers.h"
#include "lyrics.h"
#include "media_library.h"
#include "outputs.h"
#include "playlist.h"
#include "playlist_editor.h"
#include "search_engine.h"
@@ -591,6 +592,12 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
*wHeader << clEnd;
wHeader->Refresh();
}
if (changed.Outputs)
{
# ifdef ENABLE_OUTPUTS
myOutputs->FetchList();
# endif // ENABLE_OUTPUTS
}
*wFooter << fmtBoldEnd;
wFooter->GotoXY(sx, sy);
if (changed.PlayerState || (changed.ElapsedTime && (!Config.new_design || Mpd.GetState() == psPlay)))