--- a/src/ohinfo.cxx
+++ b/src/ohinfo.cxx
@@ -101,7 +101,7 @@
makedetails(st["Duration"], st["BitRate"], st["BitDepth"],st["SampleRate"]);
st["Lossless"] = "0";
st["CodecName"] = "";
- st["Metatext"] = "";
+ st["Metatext"] = m_metatext;
return true;
}
@@ -168,6 +168,12 @@
int OHInfo::metatext(const SoapIncoming& sc, SoapOutgoing& data)
{
LOGDEB("OHInfo::metatext" << endl);
- data.addarg("Value", "");
+ data.addarg("Value", m_state["Metatext"]);
return UPNP_E_SUCCESS;
}
+
+void OHInfo::setMetatext(const string& metatext)
+{
+ LOGDEB("OHInfo::setMetatext: " << metatext << endl);
+ m_metatext = metatext;
+}