From 5f633acba1183a6eddbd22550705b83ecc931ce5 Mon Sep 17 00:00:00 2001 From: huangtianyu Date: Thu, 24 Jul 2025 11:00:35 +0000 Subject: [PATCH 1/2] update services/engine/histreamer/lpp/lpp_sync_manager/src/lpp_sync_manager_adapter.cpp. Signed-off-by: huangtianyu --- .../lpp/lpp_sync_manager/src/lpp_sync_manager_adapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/engine/histreamer/lpp/lpp_sync_manager/src/lpp_sync_manager_adapter.cpp b/services/engine/histreamer/lpp/lpp_sync_manager/src/lpp_sync_manager_adapter.cpp index acee4067c..f42dd685a 100644 --- a/services/engine/histreamer/lpp/lpp_sync_manager/src/lpp_sync_manager_adapter.cpp +++ b/services/engine/histreamer/lpp/lpp_sync_manager/src/lpp_sync_manager_adapter.cpp @@ -197,7 +197,8 @@ int32_t LppSyncManagerAdapter::Flush() MediaTrace trace("LppSyncManagerAdapter::Flush"); MEDIA_LOG_I("Flush enter"); FALSE_RETURN_V_MSG_E(syncMgrAdapter_ != nullptr, MSERR_INVALID_OPERATION, "syncMgrAdapter_ is nullptr"); - MEDIA_LOG_W("syncMgrAdapter_ flush not implememt!"); + int32_t ret = syncMgrAdapter_->Flush(); + FALSE_RETURN_V_MSG(ret == HDF_SUCCESS, MSERR_HARDWARE_ERROR, "SyncMananger Flush failed"); return MSERR_OK; } -- Gitee From cbbab00e0665aa0e31ca3c2af6f6c7e458f7ad92 Mon Sep 17 00:00:00 2001 From: huangtianyu Date: Thu, 24 Jul 2025 11:02:51 +0000 Subject: [PATCH 2/2] update services/engine/histreamer/lpp/lpp_audio_streamer/src/lpp_audio_render_adapter.cpp. Signed-off-by: huangtianyu --- .../lpp/lpp_audio_streamer/src/lpp_audio_render_adapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/engine/histreamer/lpp/lpp_audio_streamer/src/lpp_audio_render_adapter.cpp b/services/engine/histreamer/lpp/lpp_audio_streamer/src/lpp_audio_render_adapter.cpp index 8a03c6c3a..ca5771f25 100644 --- a/services/engine/histreamer/lpp/lpp_audio_streamer/src/lpp_audio_render_adapter.cpp +++ b/services/engine/histreamer/lpp/lpp_audio_streamer/src/lpp_audio_render_adapter.cpp @@ -651,7 +651,8 @@ void LppAudioRenderAdapter::UpdateTimeAnchor(int64_t bufferPts) FALSE_RETURN_MSG(ret == MSERR_OK, "GetAudioPosition failed"); anchorClock_ = time.tv_sec * SEC_TO_US + time.tv_nsec / US_TO_MS; // convert to us anchorPts_ = startPts_ + static_cast(position) * SEC_TO_US / sampleRate_; - MEDIA_LOG_I("anchorPts_ is " PUBLIC_LOG_D64 " and anchorClock_ is " PUBLIC_LOG_D64, anchorPts_, anchorClock_); + MEDIA_LOG_I("anchorPts is " PUBLIC_LOG_D64 " and anchorClock is " PUBLIC_LOG_D64 " and startPts is " PUBLIC_LOG_D64, + anchorPts_, anchorClock_, startPts_); lastReportedClockTime_ = nowClockTime; FALSE_RETURN_MSG(eventReceiver_ != nullptr, "eventReceiver_ is nullptr"); std::pair anchor {anchorPts_, anchorClock_}; -- Gitee