From 18484c3d5f7cf17bcf20999eba3b441a9aa25ddb Mon Sep 17 00:00:00 2001 From: "hs321.lee" Date: Fri, 19 Jul 2013 21:41:17 +0900 Subject: [PATCH] Fix for P130628-1037 Change-Id: Ib5473b8576f3ab100bdb2ba76e86ea63a296e134 Signed-off-by: hs321.lee --- src/FCnt_ContentManagerImpl.cpp | 3 +++ src/FCnt_ContentManagerUtilImpl.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/FCnt_ContentManagerImpl.cpp b/src/FCnt_ContentManagerImpl.cpp index f126fbe..948c622 100644 --- a/src/FCnt_ContentManagerImpl.cpp +++ b/src/FCnt_ContentManagerImpl.cpp @@ -1102,6 +1102,8 @@ _ContentManagerImpl::SaveDataToDatabase(const media_info_h pMediaInfo, result r = GetLastResult(); if (IsFailed(r)) { + ClearLastResult(); + SysLog(NID_CNT, "[%s] Failed to perform GetFileExtension operation.", GetErrorMessage(r)); unique_ptr pTempPath(_StringConverter::CopyToCharArrayN(pContentData->contentPath)); @@ -1116,6 +1118,7 @@ _ContentManagerImpl::SaveDataToDatabase(const media_info_h pMediaInfo, r = mimeType.Append(tempType); SysTryReturn(NID_CNT, !IsFailed(r), UuId::GetInvalidUuId(), E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to perform Append operation."); + } // If the content format is JPG and it has GPS data, it will be saved in database automatically. diff --git a/src/FCnt_ContentManagerUtilImpl.cpp b/src/FCnt_ContentManagerUtilImpl.cpp index d73ed3d..25754d4 100755 --- a/src/FCnt_ContentManagerUtilImpl.cpp +++ b/src/FCnt_ContentManagerUtilImpl.cpp @@ -1629,6 +1629,8 @@ _ContentManagerUtilImpl::CheckContentType(const String& contentPath, bool intern } else { + ClearLastResult(); + SysLog(NID_CNT, "[%s] Failed to perform GetFileExtension operation.", GetErrorMessage(r)); unique_ptr pTempPath(_StringConverter::CopyToCharArrayN(contentPath)); -- 2.7.4