Bug fix of filter parsing != 35/46335/1 accepted/tizen/mobile/20150819.235514 accepted/tizen/tv/20150819.235527 accepted/tizen/wearable/20150819.235539 submit/tizen/20150819.090040
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 19 Aug 2015 08:37:51 +0000 (17:37 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Wed, 19 Aug 2015 08:37:51 +0000 (17:37 +0900)
Change-Id: I0f4cde4b2364ccf60c2685aff7dbd5ed99575c00

packaging/capi-content-media-content.spec
src/media_filter.c

index e019d13..2d7c111 100755 (executable)
@@ -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
index cc74a8f..b3f49cc 100755 (executable)
@@ -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;
+                       }
                }
        }