- put references to RtpDump to #ifdef USE_RTPDUMP where possible

This commit is contained in:
2019-03-14 10:30:38 +02:00
parent eb4d3237c0
commit 11db9b7450
6 changed files with 42 additions and 11 deletions

View File

@@ -39,9 +39,10 @@ namespace MT
void setSocket(const RtpPair<PDatagramSocket>& socket);
RtpPair<PDatagramSocket>& socket();
#if defined(USE_RTPDUMP)
void setDumpWriter(RtpDump* dump);
RtpDump* dumpWriter();
#endif
void setSrtpSession(SrtpSession* srtp);
SrtpSession* srtpSession();
@@ -49,7 +50,9 @@ namespace MT
RtpPair<PDatagramSocket> mSocket;
RtpPair<InternetAddress> mTarget;
Statistics& mStat;
RtpDump* mDumpWriter;
#if defined(USE_RTPDUMP)
RtpDump* mDumpWriter = nullptr;
#endif
SrtpSession* mSrtpSession;
char mSendBuffer[MAX_VALID_UDPPACKET_SIZE];
};