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