Package: amule
Version: 2.3.1-1
Followup-For: Bug #670962
Tags: +patch

Hi,

I'm very sorry for ths oversight, I sneaked a last minute API change into
the libupnp6 package before the transition and missed this place where it
requires a source change.  Please would you apply the attached patch to amule ?

Thanks and apologies

Nick (libupnp maintainer)
Index: amule-2.3.1/src/UPnPBase.cpp
===================================================================
--- amule-2.3.1.orig/src/UPnPBase.cpp	2012-05-02 22:13:52.000000000 +0100
+++ amule-2.3.1/src/UPnPBase.cpp	2012-05-02 22:14:09.000000000 +0100
@@ -1299,7 +1299,7 @@
 		} else {
 #if 0
 			TvCtrlPointHandleSubscribeUpdate(
-				es_event->PublisherUrl,
+				UpnpString_get_String(es_event->PublisherUrl),
 				es_event->Sid,
 				es_event->TimeOut );
 #endif
@@ -1324,7 +1324,7 @@
 		int TimeOut = 1801;
 		int ret = UpnpSubscribe(
 			upnpCP->m_UPnPClientHandle,
-			es_event->PublisherUrl,
+			UpnpString_get_String(es_event->PublisherUrl),
 			&TimeOut,
 			newSID);
 		if (ret != UPNP_E_SUCCESS) {
@@ -1333,13 +1333,13 @@
 				msg.str(), es_event->ErrCode, NULL, NULL);
 		} else {
 			ServiceMap::iterator it =
-				upnpCP->m_ServiceMap.find(es_event->PublisherUrl);
+				upnpCP->m_ServiceMap.find(UpnpString_get_String(es_event->PublisherUrl));
 			if (it != upnpCP->m_ServiceMap.end()) {
 				CUPnPService &service = *(it->second);
 				service.SetTimeout(TimeOut);
 				service.SetSID(newSID);
 				msg2 << "Re-subscribed to EventURL '" <<
-					es_event->PublisherUrl <<
+					UpnpString_get_String(es_event->PublisherUrl) <<
 					"' with SID == '" <<
 					newSID << "'.";
 				AddDebugLogLineC(logUPnP, msg2);

Reply via email to