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:
-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, ">\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
{