From: Minje Ahn Date: Mon, 31 Aug 2015 02:19:20 +0000 (+0900) Subject: change media db open options (check_db issue) X-Git-Tag: accepted/tizen/mobile/20150831.064208^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F47111%2F1;p=platform%2Fcore%2Fapi%2Fmedia-content.git change media db open options (check_db issue) Change-Id: I75d49de0da4d870d4180cffc2824ddb0060901a8 Signed-off-by: Minje Ahn --- 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++;