fixed not to retrieve supporting codec type 44/90944/1
authorSejun Park <sejun79.park@samsung.com>
Wed, 5 Oct 2016 06:23:48 +0000 (15:23 +0900)
committerSejun Park <sejun79.park@samsung.com>
Wed, 5 Oct 2016 06:23:48 +0000 (15:23 +0900)
Change-Id: Ifdf164336a2c6156fea2c9a147e6a9045c186a45

src/media_codec_port.c

index 4508f33..76e49cc 100755 (executable)
@@ -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;
                }
        }