22 lines
996 B
Plaintext
22 lines
996 B
Plaintext
$NetBSD: patch-lg,v 1.1 2012/10/15 22:48:02 drochner Exp $
|
|
|
|
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);
|
|
}
|