mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
Fixed compilation with libnice
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
|
||||
#include "icetransport.hpp"
|
||||
#include "configuration.hpp"
|
||||
#include "globals.hpp"
|
||||
#include "transport.hpp"
|
||||
|
||||
#include <iostream>
|
||||
@ -39,12 +40,12 @@
|
||||
using namespace std::chrono_literals;
|
||||
using std::chrono::system_clock;
|
||||
|
||||
namespace rtc::impl {
|
||||
|
||||
#if !USE_NICE
|
||||
|
||||
#define MAX_TURN_SERVERS_COUNT 2
|
||||
|
||||
namespace rtc::impl {
|
||||
|
||||
IceTransport::IceTransport(const Configuration &config, candidate_callback candidateCallback,
|
||||
state_callback stateChangeCallback,
|
||||
gathering_state_callback gatheringStateChangeCallback)
|
||||
@ -338,12 +339,8 @@ void IceTransport::LogCallback(juice_log_level_t level, const char *message) {
|
||||
PLOG(severity) << "juice: " << message;
|
||||
}
|
||||
|
||||
} // namespace rtc::impl
|
||||
|
||||
#else // USE_NICE == 1
|
||||
|
||||
namespace rtc {
|
||||
|
||||
IceTransport::IceTransport(const Configuration &config, candidate_callback candidateCallback,
|
||||
state_callback stateChangeCallback,
|
||||
gathering_state_callback gatheringStateChangeCallback)
|
||||
@ -808,6 +805,6 @@ bool IceTransport::getSelectedCandidatePair(Candidate *local, Candidate *remote)
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace rtc
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace rtc::impl
|
||||
|
Reference in New Issue
Block a user