提交 e9da7f4b authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

RtpStream.cpp: Use initialization list for this->rtpStreamId

上级 b05b1184
...@@ -18,13 +18,11 @@ namespace RTC ...@@ -18,13 +18,11 @@ namespace RTC
/* Instance methods. */ /* Instance methods. */
RtpStream::RtpStream(RTC::RtpStream::Params& params) : params(params) RtpStream::RtpStream(RTC::RtpStream::Params& params)
: params(params), rtpStreamId(Utils::Crypto::GetRandomString(16))
{ {
MS_TRACE(); MS_TRACE();
// Generate a random rtpStreamId.
this->rtpStreamId = Utils::Crypto::GetRandomString(16);
// Set the status check timer. // Set the status check timer.
this->statusCheckTimer = new Timer(this); this->statusCheckTimer = new Timer(this);
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论