From 9814992a8e8d7dcbc28dac601580af6a99303bb9 Mon Sep 17 00:00:00 2001 From: cqm Date: Thu, 31 Oct 2024 11:28:06 +0800 Subject: [PATCH] small change --- server/FFmpegSource.h | 8 ++++---- src/Player/PlayerProxy.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/FFmpegSource.h b/server/FFmpegSource.h index c3ef3cc6..4bc44e33 100644 --- a/server/FFmpegSource.h +++ b/server/FFmpegSource.h @@ -77,10 +77,10 @@ public: */ void play(const std::string &ffmpeg_cmd_key, const std::string &src_url, const std::string &dst_url, int timeout_ms, const onPlay &cb); - const std::string &getSrcUrl() const { return _src_url; } - const std::string &getDstUrl() const { return _dst_url; } - const std::string &getCmd() const { return _cmd; } - const std::string &getCmdKey() const { return _ffmpeg_cmd_key; } + const std::string& getSrcUrl() const { return _src_url; } + const std::string& getDstUrl() const { return _dst_url; } + const std::string& getCmd() const { return _cmd; } + const std::string& getCmdKey() const { return _ffmpeg_cmd_key; } const mediakit::MediaInfo& getMediaInfo() const { return _media_info; } /** diff --git a/src/Player/PlayerProxy.h b/src/Player/PlayerProxy.h index 52d57285..304d22a6 100644 --- a/src/Player/PlayerProxy.h +++ b/src/Player/PlayerProxy.h @@ -140,8 +140,8 @@ public: TranslationInfo getTranslationInfo(); const std::string& getUrl() const { return _pull_url; } - const MediaTuple &getMediaTuple() const { return _tuple; } - const ProtocolOption &getOption() const { return _option; } + const MediaTuple& getMediaTuple() const { return _tuple; } + const ProtocolOption& getOption() const { return _option; } private: // MediaSourceEvent override