修正ENABLE_RTPPROXY未启用时编译失败问题 (#4384)

This commit is contained in:
dsjing
2025-08-09 14:24:23 +08:00
committed by GitHub
parent 90fcad41f2
commit 87d84c47fe
2 changed files with 8 additions and 4 deletions

View File

@@ -208,9 +208,9 @@ public:
const ProtocolOption &getOption() const;
const MediaTuple &getMediaTuple() const;
std::string shortUrl() const;
#if defined(ENABLE_RTPPROXY)
void forEachRtpSender(const std::function<void(const std::string &ssrc, const RtpSender &sender)> &cb) const;
#endif // ENABLE_RTPPROXY
protected:
/////////////////////////////////MediaSink override/////////////////////////////////
@@ -260,7 +260,9 @@ private:
toolkit::Ticker _last_check;
std::unordered_map<int, Stamp> _stamps;
std::weak_ptr<Listener> _track_listener;
#if defined(ENABLE_RTPPROXY)
std::unordered_multimap<std::string, std::tuple<RingType::RingReader::Ptr, std::weak_ptr<RtpSender>>> _rtp_sender;
#endif // ENABLE_RTPPROXY
FMP4MediaSourceMuxer::Ptr _fmp4;
RtmpMediaSourceMuxer::Ptr _rtmp;
RtspMediaSourceMuxer::Ptr _rtsp;