* Include PV namespace if pv attributes are requested.

This commit is contained in:
Justin Maggard 2011-12-15 20:20:47 +00:00
parent 311e36736e
commit d829df06dc
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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
{