From bbea822ce773efa1e2fbfc6f0d67d391ea526fc7 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Thu, 30 Mar 2017 08:51:40 +0900 Subject: [PATCH] Fix wrong csapi Change RemoveMediaInformationBatchAsync -> RemoveMediaInformationBatch Remove Task(this api is not async function) Change-Id: I19fc1067e412a41d8ec2c9c055e1749f36ae7057 Signed-off-by: Minje Ahn --- .../Tizen.Content.MediaContent/ContentManager.cs | 9 +++------ packaging/csapi-media-content.spec | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) 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 -- 2.7.4