diff --git a/frameworks/native/hdiadapter_new/source/va_capture_source.cpp b/frameworks/native/hdiadapter_new/source/va_capture_source.cpp index b1dc944cd750f30f561c0c525019b2d655bd8d02..7c9e6a32ed3ac7f288e52621be09b0e2c694eae8 100644 --- a/frameworks/native/hdiadapter_new/source/va_capture_source.cpp +++ b/frameworks/native/hdiadapter_new/source/va_capture_source.cpp @@ -100,7 +100,7 @@ int32_t VACaptureSource::CreateCapture() std::shared_ptr attribute = MakeVAStreamAttributeFromIAudioSourceAttr(); sptr inputStreamRemote; int ret = deviceController_->OpenInputStream(*prop, *attribute, inputStreamRemote); - CHECK_AND_RETURN_RET_LOG(ret == SUCCESS, ERR_OPERATION_FAILED, "openInputStream failed"); + CHECK_AND_RETURN_RET_LOG(ret == SUCCESS, ERR_OPERATION_FAILED, "openInputStream failed ret = %{pubilc}d", ret); CHECK_AND_RETURN_RET_LOG(inputStreamRemote != nullptr, ERR_OPERATION_FAILED, "inputStreamRemote is nullptr"); inputStream_ = iface_cast(inputStreamRemote); @@ -206,7 +206,7 @@ int32_t VACaptureSource::Stop(void) stopThread.detach(); int64_t stopTimestamp = ClockTime::GetCurNano(); - PrintDfx(stopTimestamp - startTimestamp); + PrintDfx((stopTimestamp - startTimestamp) / AUDIO_NS_PER_SECOND); return SUCCESS; }