diff --git a/services/screenservice/sinkservice/dscreenservice/include/dscreen_sink_service.h b/services/screenservice/sinkservice/dscreenservice/include/dscreen_sink_service.h index 6fe7cd171b29567f6d3f2c9e256d5e49814eca8e..68b08da594fa6f03eb81a8a8e60c8303a4c553c5 100644 --- a/services/screenservice/sinkservice/dscreenservice/include/dscreen_sink_service.h +++ b/services/screenservice/sinkservice/dscreenservice/include/dscreen_sink_service.h @@ -35,7 +35,7 @@ public: int32_t SubscribeLocalHardware(const std::string &dhId, const std::string ¶m) override; int32_t UnsubscribeLocalHardware(const std::string &dhId) override; void DScreenNotify(const std::string &devId, int32_t eventCode, const std::string &eventContent) override; - int Dump(int32_t fd, const std::vector& args) override; + int32_t Dump(int32_t fd, const std::vector& args) override; protected: void OnStart() override; diff --git a/services/screenservice/sinkservice/dscreenservice/src/dscreen_sink_service.cpp b/services/screenservice/sinkservice/dscreenservice/src/dscreen_sink_service.cpp index 8da0e912eb6d6524415a09a4461edaf7eabf383d..8383c30e0043bfeca844f8717eac380eaa95a6da 100644 --- a/services/screenservice/sinkservice/dscreenservice/src/dscreen_sink_service.cpp +++ b/services/screenservice/sinkservice/dscreenservice/src/dscreen_sink_service.cpp @@ -103,9 +103,9 @@ void DScreenSinkService::DScreenNotify(const std::string &devId, int32_t eventCo ScreenRegionManager::GetInstance().HandleDScreenNotify(devId, eventCode, eventContent); } -int DScreenSinkService::Dump(int32_t fd, const std::vector& args) +int32_t DScreenSinkService::Dump(int32_t fd, const std::vector& args) { - DHLOGI("DScreenSourceService Dump."); + DHLOGI("DScreenSinkService Dump."); std::string result; ScreenRegionManager::GetInstance().GetScreenDumpInfo(result); int ret = dprintf(fd, "%s\n", result.c_str()); diff --git a/services/screenservice/sourceservice/dscreenservice/include/dscreen_source_service.h b/services/screenservice/sourceservice/dscreenservice/include/dscreen_source_service.h index 415673d00c4df055232aef2807a5ec840615a9ee..8f97cff92463e11a5bd62e49115221b5e668a02a 100644 --- a/services/screenservice/sourceservice/dscreenservice/include/dscreen_source_service.h +++ b/services/screenservice/sourceservice/dscreenservice/include/dscreen_source_service.h @@ -40,7 +40,7 @@ public: int32_t ConfigDistributedHardware(const std::string &devId, const std::string &dhId, const std::string &key, const std::string &value) override; void DScreenNotify(const std::string &devId, const int32_t eventCode, const std::string &eventContent) override; - int Dump(int32_t fd, const std::vector& args) override; + int32_t Dump(int32_t fd, const std::vector& args) override; protected: void OnStart() override; diff --git a/services/screenservice/sourceservice/dscreenservice/src/dscreen_source_service.cpp b/services/screenservice/sourceservice/dscreenservice/src/dscreen_source_service.cpp index bae8b5ac4238e449ecac9c8203ae21ed32e1bab2..957b47271bebc0e1d73adc4e7232661b0c224d80 100644 --- a/services/screenservice/sourceservice/dscreenservice/src/dscreen_source_service.cpp +++ b/services/screenservice/sourceservice/dscreenservice/src/dscreen_source_service.cpp @@ -148,7 +148,7 @@ void DScreenSourceService::DScreenNotify(const std::string &devId, const int32_t DScreenManager::GetInstance().HandleDScreenNotify(devId, eventCode, eventContent); } -int DScreenSourceService::Dump(int32_t fd, const std::vector& args) +int32_t DScreenSourceService::Dump(int32_t fd, const std::vector& args) { DHLOGI("DScreenSourceService Dump."); std::string result; diff --git a/services/screentransport/screensinkprocessor/decoder/include/image_sink_decoder.h b/services/screentransport/screensinkprocessor/decoder/include/image_sink_decoder.h index f08b20eb4fcc3a26ddd41d117113d01b49e75abf..d3061757fb43acc0efbea8cb68cb7d201ab4104e 100644 --- a/services/screentransport/screensinkprocessor/decoder/include/image_sink_decoder.h +++ b/services/screentransport/screensinkprocessor/decoder/include/image_sink_decoder.h @@ -65,7 +65,7 @@ private: private: static const constexpr char *LOG_TAG = "ImageSinkDecoder"; static constexpr uint32_t DECODE_WAIT_MILLISECONDS = 5000; - static constexpr size_t DATA_QUEUE_MAX_SIZE = 10; + static constexpr size_t DATA_QUEUE_MAX_SIZE = 1000; std::mutex dataMutex_; std::mutex decodeMutex_; diff --git a/services/screentransport/screensourcetrans/include/screen_source_trans.h b/services/screentransport/screensourcetrans/include/screen_source_trans.h index 667212b3459818258f1f25389995d114969b16f7..81c4bde0209c2d883cefe0b9eeeed2173d8570c0 100644 --- a/services/screentransport/screensourcetrans/include/screen_source_trans.h +++ b/services/screentransport/screensourcetrans/include/screen_source_trans.h @@ -63,7 +63,7 @@ private: static const constexpr char *LOG_TAG = "ScreenSourceTrans"; static constexpr uint8_t SESSION_WAIT_SECONDS = 5; static constexpr uint8_t DATA_WAIT_SECONDS = 1; - static constexpr size_t DATA_QUEUE_MAX_SIZE = 10; + static constexpr size_t DATA_QUEUE_MAX_SIZE = 1000; std::mutex sessionMtx_; std::mutex dataMtx_;