From: Minje Ahn Date: Wed, 29 Mar 2017 23:51:40 +0000 (+0900) Subject: Fix wrong csapi X-Git-Tag: accepted/tizen/common/20170403.185803^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_ivi;p=platform%2Fcore%2Fcsapi%2Fmedia-content.git Fix wrong csapi Change RemoveMediaInformationBatchAsync -> RemoveMediaInformationBatch Remove Task(this api is not async function) Change-Id: I19fc1067e412a41d8ec2c9c055e1749f36ae7057 Signed-off-by: Minje Ahn --- diff --git a/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ContentManager.cs b/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ContentManager.cs index 84539aa..6e8f3d7 100755 --- a/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ContentManager.cs +++ b/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ContentManager.cs @@ -254,15 +254,12 @@ namespace Tizen.Content.MediaContent /// without calling this function.This function is only called when the media server is busy and user needs to get quick result of deleting. /// /// The content filter to which media will be matched - /// Task with the removal result - public static Task RemoveMediaInformationBatchAsync(ContentFilter filter) + public static void RemoveMediaInformationBatch(ContentFilter filter) { Database.ConnectToDB(); - var task = new TaskCompletionSource(); IntPtr handle = (filter != null) ? filter.Handle : IntPtr.Zero; - MediaContentError res = Interop.MediaInformation.BatchDelete(handle); - task.SetResult((int)res); - return task.Task; + MediaContentValidator.ThrowIfError( + Interop.MediaInformation.BatchDelete(handle), "Failed to remove items"); } } } diff --git a/packaging/csapi-media-content.spec b/packaging/csapi-media-content.spec index 94bc7fe..4830e91 100755 --- a/packaging/csapi-media-content.spec +++ b/packaging/csapi-media-content.spec @@ -1,6 +1,6 @@ Name: csapi-media-content Summary: Tizen Media Content API for C# -Version: 1.0.13 +Version: 1.0.14 Release: 1 Group: Development/Libraries License: Apache-2.0