* Include PV namespace if pv attributes are requested.
This commit is contained in:
parent
311e36736e
commit
d829df06dc
@ -1090,9 +1090,9 @@ BrowseContentDirectory(struct upnphttp * h, const char * action)
|
|||||||
args.iface = h->iface;
|
args.iface = h->iface;
|
||||||
args.filter = set_filter_flags(Filter, h);
|
args.filter = set_filter_flags(Filter, h);
|
||||||
if( args.filter & FILTER_DLNA_NAMESPACE )
|
if( args.filter & FILTER_DLNA_NAMESPACE )
|
||||||
{
|
|
||||||
ret = strcatf(&str, 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");
|
strcatf(&str, ">\n");
|
||||||
|
|
||||||
args.returned = 0;
|
args.returned = 0;
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\""
|
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\""
|
||||||
#define DLNA_NAMESPACE \
|
#define DLNA_NAMESPACE \
|
||||||
" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\""
|
" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\""
|
||||||
|
#define PV_NAMESPACE \
|
||||||
|
" xmlns:pv=\"http://www.pv.com/pvns/\""
|
||||||
|
|
||||||
struct Response
|
struct Response
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user