From 5543af47a03bb8d080f07e06429211550383cc4d Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 15 Dec 2011 20:20:47 +0000 Subject: * Include PV namespace if pv attributes are requested. --- upnpsoap.c | 4 ++-- upnpsoap.h | 2 ++ 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 { -- cgit v1.2.3