From: Sangchul Lee Date: Thu, 4 Apr 2013 09:17:27 +0000 (+0900) Subject: Add MM_ERROR_INVALID_ARGUMENT case in __convert_error_case() X-Git-Tag: accepted/tizen_2.1/20130425.035643 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen_2.1%2F20130425.035643;p=platform%2Fcore%2Fapi%2Fplayer.git Add MM_ERROR_INVALID_ARGUMENT case in __convert_error_case() Change-Id: I46df516377765a7d8e0a43bac34182c2f752696a --- 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: