From 7a8ff6faab3cce125efd999af4098451f1b02a04 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Thu, 4 Apr 2013 18:17:27 +0900 Subject: [PATCH] Add MM_ERROR_INVALID_ARGUMENT case in __convert_error_case() Change-Id: I46df516377765a7d8e0a43bac34182c2f752696a --- packaging/capi-media-player.spec | 2 +- src/player.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index 0a2415c..c417dd2 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,7 +1,7 @@ Name: capi-media-player Summary: A Media Player library in Tizen Native API Version: 0.1.0 -Release: 55 +Release: 56 Group: TO_BE/FILLED_IN License: TO BE FILLED IN Source0: %{name}-%{version}.tar.gz diff --git a/src/player.c b/src/player.c index 269584c..8f83b20 100644 --- a/src/player.c +++ b/src/player.c @@ -62,6 +62,10 @@ static int __convert_error_code(int code, char* func_name) ret = PLAYER_ERROR_NONE; msg = "PLAYER_ERROR_NONE"; break; + case MM_ERROR_INVALID_ARGUMENT: + ret = PLAYER_ERROR_INVALID_PARAMETER; + msg = "PLAYER_ERROR_INVALID_PARAMETER"; + break; case MM_ERROR_PLAYER_CODEC_NOT_FOUND: case MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND: case MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND: -- 2.7.4