From f09339d95c63ad7c6c64f1e672db4ca965c1b52a Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 15 Mar 2015 02:40:39 +0800 Subject: [PATCH] Fix an issue in trunk with captions When a browse command is issued multiple files are returned. As soon as one had a caption, all files were marked as having captions because the flag wasn't cleared. Signed-off-by: Justin Maggard --- clients.h | 1 + upnpsoap.c | 1 + 2 files changed, 2 insertions(+) diff --git a/clients.h b/clients.h index d30f4ed..190d569 100644 --- a/clients.h +++ b/clients.h @@ -39,6 +39,7 @@ #define FLAG_CAPTION_RES 0x00001000 /* Response-related flags */ #define FLAG_HAS_CAPTIONS 0x80000000 +#define RESPONSE_FLAGS 0xF0000000 enum match_types { EMatchNone, diff --git a/upnpsoap.c b/upnpsoap.c index 13cb3c1..8066318 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -812,6 +812,7 @@ callback(void *args, int argc, char **argv, char **azColName) #endif } passed_args->returned++; + passed_args->flags &= ~RESPONSE_FLAGS; if( strncmp(class, "item", 4) == 0 ) {