From 5427bc1326a1332b30c8cdb189b14ca7d1a814c7 Mon Sep 17 00:00:00 2001 From: Vivek Ellur Date: Thu, 9 Mar 2017 20:37:02 +0530 Subject: [PATCH] TonePlayer: Fix exception issue in TonePlayer. Fixed the issue of exception not being generated even though CAPI was returning the correct error codes. Change-Id: Iaf9e153785cd6f8578e8e7d81ad74e533eb6b7b9 Signed-off-by: Vivek Ellur --- packaging/csapi-multimedia.spec | 2 +- src/Tizen.Multimedia/TonePlayer/TonePlayer.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packaging/csapi-multimedia.spec b/packaging/csapi-multimedia.spec index 5bf2f9e..ef21e95 100755 --- a/packaging/csapi-multimedia.spec +++ b/packaging/csapi-multimedia.spec @@ -1,6 +1,6 @@ Name: csapi-multimedia Summary: Tizen Multimedia API for C# -Version: 1.0.40 +Version: 1.0.41 Release: 0 Group: Development/Libraries License: Apache-2.0 diff --git a/src/Tizen.Multimedia/TonePlayer/TonePlayer.cs b/src/Tizen.Multimedia/TonePlayer/TonePlayer.cs index 129686a..f9289f9 100755 --- a/src/Tizen.Multimedia/TonePlayer/TonePlayer.cs +++ b/src/Tizen.Multimedia/TonePlayer/TonePlayer.cs @@ -69,8 +69,7 @@ namespace Tizen.Multimedia if (ret != (int)TonePlayerError.None) { Log.Error(TonePlayerLog.LogTag, "Error Occured with error code: " + (TonePlayerError)ret); - task.TrySetException(TonePlayerErrorFactory.CreateException(ret, "Failed to play tone.")); - return; + throw TonePlayerErrorFactory.CreateException(ret, "Failed to play tone."); } if (cancellationToken != CancellationToken.None) -- 2.7.4