Code

gidle: mpd_glib_enter() returns success
authorMax Kellermann <max@duempel.org>
Fri, 16 Oct 2009 13:08:51 +0000 (15:08 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 16 Oct 2009 13:08:51 +0000 (15:08 +0200)
commitea237ee661ffcd1c16a7bb72364e83c7642f2427
tree3c1b0212531e027aaf41ceb8767fb53baa5a135d
parent2158ae519ddd706a93187686324cf05cbdca4bd2
gidle: mpd_glib_enter() returns success

mpd_glib_enter() is unreliable, because it does nothing when called
during the callback, which in turn was invoked by mpd_glib_leave().
Sometimes, mpdclient.idle is wrong because of that.  This patch sets
mpdclient.idle to the return value of mpd_glib_enter().
src/gidle.c
src/gidle.h
src/mpdclient.c