From: Sejun Park Date: Wed, 5 Oct 2016 06:23:48 +0000 (+0900) Subject: fixed not to retrieve supporting codec type X-Git-Tag: submit/tizen/20161019.084351~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c315770f57585c18054d5ee78b7cf0643346957f;p=platform%2Fcore%2Fapi%2Fmediacodec.git fixed not to retrieve supporting codec type Change-Id: Ifdf164336a2c6156fea2c9a147e6a9045c186a45 --- diff --git a/src/media_codec_port.c b/src/media_codec_port.c index 4508f33..76e49cc 100755 --- a/src/media_codec_port.c +++ b/src/media_codec_port.c @@ -428,6 +428,7 @@ int mc_get_supported_type(MMHandleType mediacodec, mediacodec_codec_type_e codec LOGE("fail invaild param\n"); return MC_INVALID_ARG; } + codec_map = encoder ? mc_handle->encoder_map : mc_handle->decoder_map; num_supported_codec = encoder ? mc_handle->num_supported_encoder : mc_handle->num_supported_decoder; @@ -437,7 +438,6 @@ int mc_get_supported_type(MMHandleType mediacodec, mediacodec_codec_type_e codec *support_type |= MEDIACODEC_SUPPORT_TYPE_HW; else *support_type |= MEDIACODEC_SUPPORT_TYPE_SW; - break; } }