ports/net/minidlna/files/patch-lg
Mikhail Teterin 9921dc07c3 Fix my own patch to stop accumulation of zombie-processes.
Reported by: se@, Sergey Grigoriev, Stefan Sundberg

Add a handful of patches accepted by the author from different people.
Bump PORTREVISION.
2012-01-09 20:45:07 +00:00

19 lines
936 B
Text

Patch from:
http://sourceforge.net/tracker/?func=detail&aid=3459128&group_id=243163&atid=1121518
diff -u -b -p -d -r1.104 upnpsoap.c
--- upnpsoap.c 23 Nov 2011 22:41:42 -0000 1.104
+++ upnpsoap.c 13 Dec 2011 20:45:33 -0000
@@ -754,9 +754,9 @@ callback(void *args, int argc, char **ar
ret = strcatf(str, " refID=\"%s\"", refID);
}
ret = strcatf(str, ">"
- "<dc:title>%s</dc:title>"
+ "<dc:title>%s%s</dc:title>"
"<upnp:class>object.%s</upnp:class>",
- title, class);
+ title, ((strchr(title, '.') == NULL && (passed_args->filter & FILTER_RES) && *mime == 'v' && passed_args->client == ELGDevice) ? "." : ""), class);
if( comment && (passed_args->filter & FILTER_DC_DESCRIPTION) ) {
ret = strcatf(str, "<dc:description>%.384s</dc:description>", comment);
}