From eb0278a90545b77bd8425cc2cd4197145c20a436 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Mon, 15 Aug 2011 23:39:53 +0000 Subject: [PATCH] * Only send Samsung bookmark info if it's a Samsung device. UPnP-Inspector can't handle it, so perhaps other devices will fail with it as well. --- upnpsoap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upnpsoap.c b/upnpsoap.c index 03b0de6..33aeb0f 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -756,7 +756,7 @@ callback(void *args, int argc, char **argv, char **azColName) if( date && (passed_args->filter & FILTER_DC_DATE) ) { ret = strcatf(str, "<dc:date>%s</dc:date>", date); } - if( passed_args->filter & FILTER_SEC_CAPTION_INFO_EX) { + if( (passed_args->flags & FLAG_SAMSUNG) && (passed_args->filter & FILTER_SEC_CAPTION_INFO_EX) ) { /* Get bookmark */ ret = strcatf(str, "<sec:dcmInfo>CREATIONDATE=0,FOLDER=%s,BM=%d</sec:dcmInfo>", title, sql_get_int_field(db, "SELECT SEC from BOOKMARKS where ID = '%s'", detailID));