From b13a3222655a96b355e87f873c49daf893102e35 Mon Sep 17 00:00:00 2001 From: dupengyue <dupengyue@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 21 七月 2017 11:13:53 +0800 Subject: [PATCH] 调试接口添加 --- RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp b/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp index ac3c141..768f904 100644 --- a/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp +++ b/RtspFace/PL_AndroidMediaCodecDecoder_ndk.cpp @@ -172,8 +172,11 @@ void PL_AndroidMediaCodecDecoder::finit() { PL_AMCD_Internal* in = (PL_AMCD_Internal*)internal; - //todo release codec - // call AMediaCodec_stop + + AMediaCodec_stop(in->codec); + AMediaCodec_delete(in->codec); + + in->reset(); } bool PL_AndroidMediaCodecDecoder::pay(const PipeMaterial& pm) -- Gitblit v1.8.0