From 7e6b015b05a485a807022e2471b0f09f911d5b51 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Thu, 5 Dec 2013 21:56:03 +0000 Subject: [PATCH] upnpsoap: fix samsung bookmarks This makes the bookmark functionality work as expected on Samsung E series. Adapted from http://sourceforge.net/p/minidlna/discussion/879956/thread/1a711ef6/ and http://sourceforge.net/p/minidlna/bugs/197/. Signed-off-by: Spencer Oliver --- upnpsoap.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/upnpsoap.c b/upnpsoap.c index 4dad817..e5e1564 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -332,9 +332,15 @@ set_filter_flags(char *filter, struct upnphttp *h) uint32_t flags = 0; int samsung = client_types[h->req_client].flags & FLAG_SAMSUNG; - if( !filter || (strlen(filter) <= 1) ) - /* Not the full 32 bits. Skip vendor-specific stuff by default. */ - return 0xFFFFFF; + if( !filter || (strlen(filter) <= 1) ) { + if (strcmp(filter, "*") == 0 && samsung) { + return 0xFFFFFFFF; /* We want FILTER_SEC_DCM_INFO */ + } else { + /* Not the full 32 bits. Skip vendor-specific stuff by default. */ + return 0xFFFFFF; + } + } + if( samsung ) flags |= FILTER_DLNA_NAMESPACE; item = strtok_r(filter, ",", &saveptr);