From 6c5344828ca593d33f0e548f4030bec8883872dc Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Mon, 13 Jun 2016 08:51:16 +0900 Subject: [PATCH] [UTC][metadata-extractor][ACR-643][Add 360 content feature] Change-Id: I7ea01ca80a860c70a04f91235cce5839566bc6a3 Signed-off-by: Minje Ahn --- src/utc/metadata-extractor/utc-metadata-extractor.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/utc/metadata-extractor/utc-metadata-extractor.c b/src/utc/metadata-extractor/utc-metadata-extractor.c index 855630d..0b63cea 100755 --- a/src/utc/metadata-extractor/utc-metadata-extractor.c +++ b/src/utc/metadata-extractor/utc-metadata-extractor.c @@ -79,7 +79,8 @@ static char audio_test_value[][MAX_LEN] = {"23646", "2001-1-1", "METADATA_ROTATE", "METADATA_VIDEO_CODEC", - "MP3"}; + "MP3", + "0"}; static char video_test_value[][MAX_LEN] = {"11883", "909428", @@ -114,7 +115,8 @@ static char video_test_value[][MAX_LEN] = {"11883", "2014-01-01 09:01:11", "90", "MPEG4", - "AAC"}; + "AAC", + "0"}; static metadata_extractor_h g_metadata_h = NULL; static int _startup_error = 0; @@ -324,7 +326,7 @@ int utc_metadata_extractor_get_metadata_n(void) int attr, ret; char *value = NULL; - for (attr = 0; attr < (METADATA_AUDIO_CODEC + 1); attr++) + for (attr = 0; attr < (METADATA_360 + 1); attr++) { ret = metadata_extractor_get_metadata(NULL, attr, &value); UTC_SAFE_FREE(value); @@ -350,7 +352,7 @@ int utc_metadata_extractor_get_metadata_p1(void) ret = metadata_extractor_set_path(g_metadata_h, audio_path); assert_eq(ret, METADATA_EXTRACTOR_ERROR_NONE); - for (attr = 0; attr < (METADATA_AUDIO_CODEC + 1); attr++) { + for (attr = 0; attr < (METADATA_360 + 1); attr++) { if (attr == METADATA_VIDEO_CODEC) continue; @@ -390,7 +392,7 @@ int utc_metadata_extractor_get_metadata_p2(void) ret = metadata_extractor_set_buffer(g_metadata_h, buffer, size); assert_eq(ret, METADATA_EXTRACTOR_ERROR_NONE); - for (attr = 0; attr < (METADATA_AUDIO_CODEC + 1); attr++) { + for (attr = 0; attr < (METADATA_360 + 1); attr++) { if (attr == METADATA_VIDEO_CODEC) continue; @@ -428,7 +430,7 @@ int utc_metadata_extractor_get_metadata_p3(void) ret = metadata_extractor_set_path(g_metadata_h, video_path); assert_eq(ret, METADATA_EXTRACTOR_ERROR_NONE); - for (attr = 0; attr < (METADATA_AUDIO_CODEC + 1); attr++) + for (attr = 0; attr < (METADATA_360 + 1); attr++) { ret = metadata_extractor_get_metadata(g_metadata_h, attr, &value); assert_eq(ret, METADATA_EXTRACTOR_ERROR_NONE); -- 2.7.4