From: coderhyme Date: Fri, 3 Mar 2017 02:58:08 +0000 (+0900) Subject: Fix player tc issues. X-Git-Tag: submit/trunk/20170823.075128~94^2~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba5fff408a857fb6516aea10d3597c9fca29cc49;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Fix player tc issues. Change-Id: I44e66b52b102b9dcd83aa070759a22d3edec641a Signed-off-by: coderhyme --- diff --git a/packaging/csapi-multimedia.spec b/packaging/csapi-multimedia.spec index dce4004..d078875 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.34 +Version: 1.0.35 Release: 0 Group: Development/Libraries License: Apache-2.0 diff --git a/src/Tizen.Multimedia/Player/Player.cs b/src/Tizen.Multimedia/Player/Player.cs index 83095ae..1f5730d 100755 --- a/src/Tizen.Multimedia/Player/Player.cs +++ b/src/Tizen.Multimedia/Player/Player.cs @@ -425,7 +425,6 @@ namespace Tizen.Multimedia { get { - Log.Info(PlayerLog.Tag, "get display : " + _display.Type); return _display; } set @@ -700,7 +699,7 @@ namespace Tizen.Multimedia if (!File.Exists(path)) { - throw new ArgumentException($"The specified file does not exist : { path }."); + throw new FileNotFoundException($"The specified file does not exist : { path }."); } PlayerErrorConverter.ThrowIfError(Interop.Player.SetSubtitlePath(_handle, path), diff --git a/src/Tizen.Multimedia/Player/PlayerError.cs b/src/Tizen.Multimedia/Player/PlayerError.cs index fb41136..6f24090 100644 --- a/src/Tizen.Multimedia/Player/PlayerError.cs +++ b/src/Tizen.Multimedia/Player/PlayerError.cs @@ -14,6 +14,7 @@ * limitations under the License. */ using System; +using System.IO; using Tizen.Internals.Errors; namespace Tizen.Multimedia @@ -62,8 +63,9 @@ namespace Tizen.Multimedia { case PlayerErrorCode.InvalidArgument: case PlayerErrorCode.InvalidUri: - case PlayerErrorCode.NoSuchFile: throw new ArgumentException(msg); + case PlayerErrorCode.NoSuchFile: + throw new FileNotFoundException(msg); case PlayerErrorCode.OutOfMemory: case PlayerErrorCode.NoSpaceOnDevice: