Browse Source

qrtplib: Initialize RTP session state

Initialize RTPSession members in the constructor initializer list.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
86a72c72cb
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 14
      qrtplib/rtpsession.cpp

14
qrtplib/rtpsession.cpp

@ -56,6 +56,20 @@ namespace qrtplib @@ -56,6 +56,20 @@ namespace qrtplib
RTPSession::RTPSession(RTPRandom *r) :
rtprnd(GetRandomNumberGenerator(r)),
rtptrans(nullptr),
deletetransmitter(false),
usingpollthread(false),
acceptownpackets(false),
useSR_BYEifpossible(false),
maxpacksize(0),
sessionbandwidth(0.0),
controlfragment(0.0),
sendermultiplier(0.0),
byemultiplier(0.0),
membermultiplier(0.0),
collisionmultiplier(0.0),
notemultiplier(0.0),
sentpackets(false),
sources(*this),
packetbuilder(*rtprnd),
rtcpsched(sources, *rtprnd),

Loading…
Cancel
Save