diff --git a/doc/protocol.xml b/doc/protocol.xml
index eb48185e9..b6271403a 100644
--- a/doc/protocol.xml
+++ b/doc/protocol.xml
@@ -195,7 +195,7 @@
options: options like
, ,
-
+ , replay gain
@@ -520,6 +520,10 @@
seconds, because the new settings does not affect the
buffered data.
+
+ This command triggers the
+ options idle event.
+
diff --git a/src/replay_gain.c b/src/replay_gain.c
index a59cfa245..020671c8a 100644
--- a/src/replay_gain.c
+++ b/src/replay_gain.c
@@ -24,6 +24,7 @@
#include "conf.h"
#include "audio_format.h"
#include "pcm_volume.h"
+#include "idle.h"
#include
@@ -75,6 +76,8 @@ replay_gain_set_mode_string(const char *p)
else
return false;
+ idle_add(IDLE_OPTIONS);
+
return true;
}
diff --git a/test/read_tags.c b/test/read_tags.c
index db2221c13..d38183667 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -25,6 +25,7 @@
#include "tag_ape.h"
#include "tag_id3.h"
#include "config.h"
+#include "idle.h"
#include
@@ -35,6 +36,14 @@
#include
#endif
+/**
+ * No-op dummy.
+ */
+void
+idle_add(G_GNUC_UNUSED unsigned flags)
+{
+}
+
/**
* No-op dummy.
*/
diff --git a/test/run_decoder.c b/test/run_decoder.c
index 861720cdb..3128c6121 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -22,12 +22,21 @@
#include "input_stream.h"
#include "audio_format.h"
#include "pcm_volume.h"
+#include "idle.h"
#include
#include
#include
+/**
+ * No-op dummy.
+ */
+void
+idle_add(G_GNUC_UNUSED unsigned flags)
+{
+}
+
/**
* No-op dummy.
*/