--- a/src/upmpd.cxx
+++ b/src/upmpd.cxx
@@ -279,6 +279,7 @@
string cachedir;
string onstart;
string onstop;
+ string onvolumechange;
if (!g_configfilename.empty()) {
ConfSimple config(g_configfilename.c_str(), 1, true);
if (!config.ok()) {
@@ -315,6 +316,7 @@
config.get("cachedir", cachedir);
config.get("onstart", onstart);
config.get("onstop", onstop);
+ config.get("onvolumechange", onvolumechange);
if (!(op_flags & OPT_i)) {
config.get("upnpiface", iface);
if (iface.empty()) {
@@ -444,7 +446,8 @@
MPDCli *mpdclip = 0;
int mpdretrysecs = 2;
for (;;) {
- mpdclip = new MPDCli(mpdhost, mpdport, mpdpassword, onstart, onstop);
+ mpdclip = new MPDCli(mpdhost, mpdport, mpdpassword, onstart, onstop,
+ onvolumechange);
if (mpdclip == 0) {
LOGFAT("Can't allocate MPD client object" << endl);
return 1;