From 1f4bed0c089beb9eaea6de52d2ab27c07b1f874d Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Mon, 31 Aug 2015 11:19:20 +0900 Subject: [PATCH] change media db open options (check_db issue) Change-Id: I75d49de0da4d870d4180cffc2824ddb0060901a8 Signed-off-by: Minje Ahn --- include/media_info_private.h | 2 +- src/media_content.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/media_info_private.h b/include/media_info_private.h index ca7dbdc..a5dfdef 100755 --- a/include/media_info_private.h +++ b/include/media_info_private.h @@ -65,7 +65,7 @@ extern "C" { #define MEDIA_CONTENT_PATH_PHONE MEDIA_ROOT_PATH_INTERNAL /**< File path prefix of files stored in phone */ #define MEDIA_CONTENT_PATH_MMC MEDIA_ROOT_PATH_SDCARD /**< File path prefix of files stored in mmc card */ #define MEDIA_CONTENT_THUMB_DEFAULT_PATH tzplatform_mkpath(TZ_USER_SHARE, "media/.thumb/thumb_default.png") -#define MEDIA_CONTENT_INSERT_FILES_PATH tzplatform_mkpath(TZ_USER_HOME, "share") +#define MEDIA_CONTENT_INSERT_FILES_PATH tzplatform_getenv(TZ_USER_SHARE) #define MAX_QUERY_SIZE 4096 #define DEFAULT_QUERY_SIZE 1024 diff --git a/src/media_content.c b/src/media_content.c index ab2e0fd..457cf2f 100755 --- a/src/media_content.c +++ b/src/media_content.c @@ -676,7 +676,7 @@ int media_content_connect(void) { ret = __media_content_create_attribute_handle(); if(ret == MEDIA_CONTENT_ERROR_NONE) { - ret = media_svc_connect(&db_handle,tzplatform_getuid(TZ_USER_NAME)); + ret = media_svc_connect(&db_handle,tzplatform_getuid(TZ_USER_NAME), false); ret = _content_error_capi(MEDIA_CONTENT_TYPE, ret); if(ret == MEDIA_CONTENT_ERROR_NONE) { ref_count++; -- 2.7.4