mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Fix unused variables warnning
This commit is contained in:
@@ -167,9 +167,10 @@ int PeerConnection::Init(PeerConnectionParams params,
|
||||
}
|
||||
|
||||
int PeerConnection::CreateVideoCodec(bool hardware_acceleration) {
|
||||
hardware_acceleration_ = hardware_acceleration;
|
||||
#ifdef __APPLE__
|
||||
if (hardware_acceleration) {
|
||||
hardware_acceleration = false;
|
||||
if (hardware_acceleration_) {
|
||||
hardware_acceleration_ = false;
|
||||
LOG_WARN(
|
||||
"MacOS not support hardware acceleration, use default software codec");
|
||||
}
|
||||
@@ -238,8 +239,7 @@ int PeerConnection::CreateAudioCodec() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PeerConnection::Create(PeerConnectionParams params,
|
||||
const std::string &transmission_id,
|
||||
int PeerConnection::Create(const std::string &transmission_id,
|
||||
const std::string &password) {
|
||||
if (SignalStatus::SignalConnected != GetSignalStatus()) {
|
||||
LOG_ERROR("Signal not connected");
|
||||
@@ -263,8 +263,7 @@ int PeerConnection::Create(PeerConnectionParams params,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int PeerConnection::Join(PeerConnectionParams params,
|
||||
const std::string &transmission_id,
|
||||
int PeerConnection::Join(const std::string &transmission_id,
|
||||
const std::string &password) {
|
||||
if (SignalStatus::SignalConnected != GetSignalStatus()) {
|
||||
LOG_ERROR("Signal not connected");
|
||||
|
||||
Reference in New Issue
Block a user