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 <jmaggard@netgear.com>
This commit is contained in:
Darkvater 2015-03-15 02:40:39 +08:00 committed by Justin Maggard
parent acac5fb3bc
commit f09339d95c
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

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