[Goodies-commits] r6635 - xfmpc/trunk/src

Mike Massonnet mmassonnet at xfce.org
Tue Feb 3 19:16:24 CET 2009


Author: mmassonnet
Date: 2009-02-03 18:16:24 +0000 (Tue, 03 Feb 2009)
New Revision: 6635

Modified:
   xfmpc/trunk/src/mpdclient.c
Log:
Fix weird condition in XfmpcMpdclient

* src/mpdclient.c(cb_xfmpc_mpdclient_status_changed):
  - The signal "song-changed" must not be emitted when the database has been
  updated


Modified: xfmpc/trunk/src/mpdclient.c
===================================================================
--- xfmpc/trunk/src/mpdclient.c	2009-02-03 17:17:05 UTC (rev 6634)
+++ xfmpc/trunk/src/mpdclient.c	2009-02-03 18:16:24 UTC (rev 6635)
@@ -639,7 +639,7 @@
   if (what & MPD_CST_PLAYLIST)
     g_signal_emit_by_name (mpdclient, "playlist-changed");
 
-  if (what & MPD_CST_SONGID)
+  if (what & MPD_CST_SONGID && !(what & MPD_CST_DATABASE))
     g_signal_emit_by_name (mpdclient, "song-changed");
 
   if (what & MPD_CST_STATE)




More information about the Goodies-commits mailing list