From: EonseokLee Date: Fri, 24 May 2013 08:08:39 +0000 (+0900) Subject: Fix the TC bug for AMR codec X-Git-Tag: submit/tizen_2.2/20130714.153002~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d98a8167202d51680b30bbcf32246c70d040569f;p=framework%2Fosp%2Fmedia.git Fix the TC bug for AMR codec Change-Id: Ia07305c0d97e3e6c366a61aa879322e1b38937ae Signed-off-by: EonseokLee --- diff --git a/src/FMedia_PlayerImpl.cpp b/src/FMedia_PlayerImpl.cpp index 2c4f93b..ea8f9a4 100644 --- a/src/FMedia_PlayerImpl.cpp +++ b/src/FMedia_PlayerImpl.cpp @@ -1001,7 +1001,7 @@ CATCH: } result -_PlayerImpl::SeekTo(long msTime, bool useKeyFrame) +_PlayerImpl::SeekTo(long msTime, bool accurate) { result r = E_SUCCESS; int ret = ::PLAYER_ERROR_NONE; @@ -1018,7 +1018,7 @@ _PlayerImpl::SeekTo(long msTime, bool useKeyFrame) SysTryReturn(NID_MEDIA, msTime >= 0, r = E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The msTime is not greater than 0"); - ret = player_seek(__hPlayer, (int)msTime, useKeyFrame, PlayerSeekCompletedCallBack, (void *)this); + ret = player_seek(__hPlayer, (int)msTime, accurate, PlayerSeekCompletedCallBack, (void *)this); r = MapExceptionToResult(ret); SysTryCatch(NID_MEDIA, r == E_SUCCESS, , r, "[%s] Failed to perform player_seek operation with [0x%x]", GetErrorMessage(r), ret); return r; @@ -1973,6 +1973,14 @@ _PlayerImpl::ConvertAudioCodec(char *pAudioCodec) { return CODEC_AMR_NB; } + if (!String::Compare(String(pAudioCodec), String("AMR"))) + { + return CODEC_AMR_NB; + } + if (!String::Compare(String(pAudioCodec), String("AMR audio"))) + { + return CODEC_AMR_NB; + } if (!String::Compare(String(pAudioCodec), String("WMA"))) { return CODEC_WMA; diff --git a/src/inc/FMedia_PlayerImpl.h b/src/inc/FMedia_PlayerImpl.h index 49bc7bd..50251b2 100644 --- a/src/inc/FMedia_PlayerImpl.h +++ b/src/inc/FMedia_PlayerImpl.h @@ -97,7 +97,7 @@ public: bool IsLooping(void)const; long GetDuration(void); result SeekTo(long msTime); - result SeekTo(long msTime, bool useKeyFrame); + result SeekTo(long msTime, bool accurate); result SetVolume(int volume); result SetMute(bool mute); result SetLooping(bool looping);