Fix player tc issues.
authorcoderhyme <jhyo.kim@samsung.com>
Fri, 3 Mar 2017 02:58:08 +0000 (11:58 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Fri, 3 Mar 2017 02:58:08 +0000 (11:58 +0900)
Change-Id: I44e66b52b102b9dcd83aa070759a22d3edec641a
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
packaging/csapi-multimedia.spec
src/Tizen.Multimedia/Player/Player.cs
src/Tizen.Multimedia/Player/PlayerError.cs

index dce4004..d078875 100755 (executable)
@@ -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
index 83095ae..1f5730d 100755 (executable)
@@ -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),
index fb41136..6f24090 100644 (file)
@@ -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: