Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2011-12-16 00:20:47 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2011-12-16 00:20:47 +0400
commit5543af47a03bb8d080f07e06429211550383cc4d (patch)
tree2c5031a852f1ee0e7a0f43634b991e1cdca2a5f8
parentc4b76ee3eaa8dc7ff172a1b71c63c5fb665cbaf4 (diff)
* Include PV namespace if pv attributes are requested.
-rw-r--r--upnpsoap.c4
-rw-r--r--upnpsoap.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/upnpsoap.c b/upnpsoap.c
index d4822f0..4004009 100644
--- a/upnpsoap.c
+++ b/upnpsoap.c
@@ -1090,9 +1090,9 @@ BrowseContentDirectory(struct upnphttp * h, const char * action)
args.iface = h->iface;
args.filter = set_filter_flags(Filter, h);
if( args.filter & FILTER_DLNA_NAMESPACE )
- {
ret = strcatf(&str, DLNA_NAMESPACE);
- }
+ if( args.filter & FILTER_PV_SUBTITLE_FILE_TYPE|FILTER_PV_SUBTITLE_FILE_URI )
+ ret = strcatf(&str, PV_NAMESPACE);
strcatf(&str, "&gt;\n");
args.returned = 0;
diff --git a/upnpsoap.h b/upnpsoap.h
index d235466..484f512 100644
--- a/upnpsoap.h
+++ b/upnpsoap.h
@@ -30,6 +30,8 @@
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\""
#define DLNA_NAMESPACE \
" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\""
+#define PV_NAMESPACE \
+ " xmlns:pv=\"http://www.pv.com/pvns/\""
struct Response
{