diff options
author | Justin Maggard <jmaggard@users.sourceforce.net> | 2011-12-16 00:20:47 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforce.net> | 2011-12-16 00:20:47 +0400 |
commit | 5543af47a03bb8d080f07e06429211550383cc4d (patch) | |
tree | 2c5031a852f1ee0e7a0f43634b991e1cdca2a5f8 | |
parent | c4b76ee3eaa8dc7ff172a1b71c63c5fb665cbaf4 (diff) |
* Include PV namespace if pv attributes are requested.
-rw-r--r-- | upnpsoap.c | 4 | ||||
-rw-r--r-- | upnpsoap.h | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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; @@ -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 { |