From: Haejeong Kim Date: Wed, 19 Aug 2015 08:37:51 +0000 (+0900) Subject: Bug fix of filter parsing != X-Git-Tag: accepted/tizen/mobile/20150819.235514^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F46335%2F1;p=platform%2Fcore%2Fapi%2Fmedia-content.git Bug fix of filter parsing != Change-Id: I0f4cde4b2364ccf60c2685aff7dbd5ed99575c00 --- diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec index e019d13..2d7c111 100755 --- a/packaging/capi-content-media-content.spec +++ b/packaging/capi-content-media-content.spec @@ -1,6 +1,6 @@ Name: capi-content-media-content Summary: A Media content library in SLP C API -Version: 0.2.66 +Version: 0.2.67 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_filter.c b/src/media_filter.c index cc74a8f..b3f49cc 100755 --- a/src/media_filter.c +++ b/src/media_filter.c @@ -698,7 +698,42 @@ static int __tokenize(GList **token_list, const char *str) media_content_error("tokenize error occured"); return -1; } + } + else if(tmp[idx] == media_token[10][0] && tmp[idx+1] == media_token[10][1]) //"!=", + { + if(idx != 0) + { + token_t *token = (token_t*)calloc(1, sizeof(token_t)); + media_content_retvm_if(token == NULL, -1, "OUT_OF_MEMORY"); + ret = __tokenize_string(token, tmp, idx); + if (ret < 0) + { + SAFE_FREE(token); + media_content_error("tokenize error occured"); + return -1; + } + else + { + *token_list = g_list_append(*token_list, token); + tmp = tmp + idx; + } + } + token_t *token = (token_t*)calloc(1, sizeof(token_t)); + int size = __tokenize_operator(token, tmp, 10); + + if(token != NULL && STRING_VALID(token->str)) + { + *token_list = g_list_append(*token_list, token); + tmp += size; + idx = -1; + } + else + { + SAFE_FREE(token); + media_content_error("tokenize error occured"); + return -1; + } } }