From f382b9ba77190972123e57c5d4ebe81c2783a265 Mon Sep 17 00:00:00 2001 From: Seokpil Park Date: Tue, 30 Jul 2013 21:36:50 +0900 Subject: [PATCH] [content] Clear exception Change-Id: I01c1f41a30501ca1e01792c7e976d32ed25853bf Signed-off-by: Seokpil Park --- src/FCnt_ContentManagerImpl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/FCnt_ContentManagerImpl.cpp b/src/FCnt_ContentManagerImpl.cpp index 948c622..2608307 100644 --- a/src/FCnt_ContentManagerImpl.cpp +++ b/src/FCnt_ContentManagerImpl.cpp @@ -328,6 +328,8 @@ _ContentManagerImpl::CreateContent(const ContentInfo& contentInfo) ContentType inputType = pContentData->contentType; ContentType sysType = _ContentManagerUtilImpl::CheckContentType(pContentData->contentPath, true); + ClearLastResult(); + if (inputType != sysType) { if (!(inputType == CONTENT_TYPE_OTHER && sysType == CONTENT_TYPE_UNKNOWN)) @@ -444,6 +446,8 @@ _ContentManagerImpl::CreateContent(const ByteBuffer& byteBuffer, const String& d ContentType sysType = _ContentManagerUtilImpl::CheckContentType(destinationPath, true); ContentType inputType = pContentData->contentType; + ClearLastResult(); + if (inputType != sysType) { if (!(inputType == CONTENT_TYPE_OTHER && sysType == CONTENT_TYPE_UNKNOWN)) @@ -572,6 +576,8 @@ _ContentManagerImpl::CreateContent(const String& sourcePath, const String& desti ContentType sysType = _ContentManagerUtilImpl::CheckContentType(destinationPath, true); ContentType inputType = pContentData->contentType; + ClearLastResult(); + if (inputType != sysType) { if (!(inputType == CONTENT_TYPE_OTHER && sysType == CONTENT_TYPE_UNKNOWN)) @@ -1134,6 +1140,8 @@ _ContentManagerImpl::SaveDataToDatabase(const media_info_h pMediaInfo, delete pImageMetadata; } + + ClearLastResult(); } int val = 0; -- 2.7.4