diff --git a/services/services/codec/ipc/codec_listener_proxy.cpp b/services/services/codec/ipc/codec_listener_proxy.cpp index 2aef8a63dd9dfafa8cc9b4fcbb2350988e710b8b..e319fd95bdd267a6b9e64083e10b0d4806e5085b 100644 --- a/services/services/codec/ipc/codec_listener_proxy.cpp +++ b/services/services/codec/ipc/codec_listener_proxy.cpp @@ -226,11 +226,11 @@ void CodecListenerProxy::OnOutputBufferBinded(std::mapWriteToMessageParcel(data); - AVCODEC_LOGI("LowPowerPlayer WriteToMessageParcel: %{public}u", static_cast(res)); - } + CHECK_AND_RETURN_LOG(buffer.second != nullptr, "buffer is nullptr"); + bool res = buffer.second->WriteToMessageParcel(data); + AVCODEC_LOGI("LowPowerPlayer WriteToMessageParcel: %{public}u", static_cast(res)); } int error = Remote()->SendRequest(static_cast(CodecListenerInterfaceCode::ON_OUTPUT_BUFFER_BINDED), data, reply, option);