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

Use Node 6,7,8 in Travis and make clang-tify happy.

上级 07b549c5
...@@ -12,7 +12,7 @@ language: node_js ...@@ -12,7 +12,7 @@ language: node_js
# DOC: http://genbattle.bitbucket.org/blog/2016/01/17/c++-travis-ci/ # DOC: http://genbattle.bitbucket.org/blog/2016/01/17/c++-travis-ci/
matrix: matrix:
include: include:
- node_js: 4 - node_js: 6
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
...@@ -21,7 +21,7 @@ matrix: ...@@ -21,7 +21,7 @@ matrix:
packages: packages:
- g++-4.8 - g++-4.8
env: COMPILER=g++-4.8 env: COMPILER=g++-4.8
- node_js: 6 - node_js: 7
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
...@@ -30,7 +30,7 @@ matrix: ...@@ -30,7 +30,7 @@ matrix:
packages: packages:
- g++-4.9 - g++-4.9
env: COMPILER=g++-4.9 env: COMPILER=g++-4.9
- node_js: 7 - node_js: 8
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
......
...@@ -78,7 +78,7 @@ namespace RTC ...@@ -78,7 +78,7 @@ namespace RTC
void HandleRequest(Channel::Request* request); void HandleRequest(Channel::Request* request);
void HandleProducer(RTC::Producer* producer); void HandleProducer(RTC::Producer* producer);
void HandleConsumer(RTC::Consumer* consumer); void HandleConsumer(RTC::Consumer* consumer);
RTC::DtlsTransport::Role setRemoteDtlsParameters( RTC::DtlsTransport::Role SetRemoteDtlsParameters(
RTC::DtlsTransport::Fingerprint& fingerprint, RTC::DtlsTransport::Role role); RTC::DtlsTransport::Fingerprint& fingerprint, RTC::DtlsTransport::Role role);
void SetMaxBitrate(uint32_t bitrate); void SetMaxBitrate(uint32_t bitrate);
void ChangeUfragPwd(std::string& usernameFragment, std::string& password); void ChangeUfragPwd(std::string& usernameFragment, std::string& password);
......
...@@ -135,7 +135,7 @@ namespace RTC ...@@ -135,7 +135,7 @@ namespace RTC
const float incomingBitrateKbps = incomingBitrateBps / 1000.0f; const float incomingBitrateKbps = incomingBitrateBps / 1000.0f;
// Calculate the max bit rate std dev given the normalized // Calculate the max bit rate std dev given the normalized
// variance and the current incoming bit rate. // variance and the current incoming bit rate.
const float stdMaxBitRate = sqrt(this->varMaxBitrateKbps * this->avgMaxBitrateKbps); const float stdMaxBitRate = std::sqrt(this->varMaxBitrateKbps * this->avgMaxBitrateKbps);
switch (this->rateControlState) switch (this->rateControlState)
{ {
......
...@@ -67,7 +67,7 @@ namespace RTC ...@@ -67,7 +67,7 @@ namespace RTC
float clusterMean = clusterAggregate.sendMeanMs / static_cast<float>(clusterAggregate.count); float clusterMean = clusterAggregate.sendMeanMs / static_cast<float>(clusterAggregate.count);
return fabs(static_cast<float>(sendDeltaMs) - clusterMean) < 2.5f; return std::fabs(static_cast<float>(sendDeltaMs) - clusterMean) < 2.5f;
} }
void RemoteBitrateEstimatorAbsSendTime::AddCluster(std::list<Cluster>* clusters, Cluster* cluster) void RemoteBitrateEstimatorAbsSendTime::AddCluster(std::list<Cluster>* clusters, Cluster* cluster)
......
...@@ -356,7 +356,7 @@ namespace RTC ...@@ -356,7 +356,7 @@ namespace RTC
paused = request->data[JsonStringPaused].asBool(); paused = request->data[JsonStringPaused].asBool();
// Create a Producer instance. // Create a Producer instance.
RTC::Producer* producer = new RTC::Producer( auto* producer = new RTC::Producer(
this->notifier, producerId, kind, transport, rtpParameters, rtpMapping, paused); this->notifier, producerId, kind, transport, rtpParameters, rtpMapping, paused);
// Add us as listener. // Add us as listener.
...@@ -445,7 +445,7 @@ namespace RTC ...@@ -445,7 +445,7 @@ namespace RTC
return; return;
} }
RTC::Consumer* consumer = auto* consumer =
new RTC::Consumer(this->notifier, consumerId, kind, producer->producerId); new RTC::Consumer(this->notifier, consumerId, kind, producer->producerId);
// If the Producer is paused tell it to the new Consumer. // If the Producer is paused tell it to the new Consumer.
...@@ -622,7 +622,7 @@ namespace RTC ...@@ -622,7 +622,7 @@ namespace RTC
try try
{ {
// This may throw. // This may throw.
localRole = transport->setRemoteDtlsParameters(remoteFingerprint, remoteRole); localRole = transport->SetRemoteDtlsParameters(remoteFingerprint, remoteRole);
} }
catch (const MediaSoupError& error) catch (const MediaSoupError& error)
{ {
...@@ -1241,7 +1241,7 @@ namespace RTC ...@@ -1241,7 +1241,7 @@ namespace RTC
} }
void Router::OnTransportReceiveRtcpFeedback( void Router::OnTransportReceiveRtcpFeedback(
RTC::Transport* transport, RTC::Consumer* consumer, RTC::RTCP::FeedbackPsPacket* packet) RTC::Transport* /*transport*/, RTC::Consumer* consumer, RTC::RTCP::FeedbackPsPacket* packet)
{ {
MS_TRACE(); MS_TRACE();
......
...@@ -445,7 +445,7 @@ namespace RTC ...@@ -445,7 +445,7 @@ namespace RTC
} }
} }
RTC::DtlsTransport::Role Transport::setRemoteDtlsParameters( RTC::DtlsTransport::Role Transport::SetRemoteDtlsParameters(
RTC::DtlsTransport::Fingerprint& fingerprint, RTC::DtlsTransport::Role role) RTC::DtlsTransport::Fingerprint& fingerprint, RTC::DtlsTransport::Role role)
{ {
MS_TRACE(); MS_TRACE();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论