Index: webrtc/call/call.cc |
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc |
index c7998b2cd8a79026aa532a3a3d91265c8bbd3956..7f5d2b35380356454852944f8f90b5517e90e43c 100644 |
--- a/webrtc/call/call.cc |
+++ b/webrtc/call/call.cc |
@@ -55,7 +55,6 @@ |
#include "webrtc/video/video_receive_stream.h" |
#include "webrtc/video/video_send_stream.h" |
#include "webrtc/video/vie_remb.h" |
-#include "webrtc/voice_engine/include/voe_codec.h" |
namespace webrtc { |
@@ -150,15 +149,6 @@ class Call : public webrtc::Call, |
void ConfigureSync(const std::string& sync_group) |
EXCLUSIVE_LOCKS_REQUIRED(receive_crit_); |
- VoiceEngine* voice_engine() { |
- internal::AudioState* audio_state = |
- static_cast<internal::AudioState*>(config_.audio_state.get()); |
- if (audio_state) |
- return audio_state->voice_engine(); |
- else |
- return nullptr; |
- } |
- |
rtc::Optional<RtpPacketReceived> ParseRtpPacket(const uint8_t* packet, |
size_t length, |
const PacketTime& packet_time) |
@@ -644,8 +634,8 @@ webrtc::VideoReceiveStream* Call::CreateVideoReceiveStream( |
RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
VideoReceiveStream* receive_stream = new VideoReceiveStream( |
num_cpu_cores_, congestion_controller_.get(), &packet_router_, |
- std::move(configuration), voice_engine(), module_process_thread_.get(), |
- call_stats_.get(), &remb_); |
+ std::move(configuration), module_process_thread_.get(), call_stats_.get(), |
+ &remb_); |
const webrtc::VideoReceiveStream::Config& config = receive_stream->config(); |
{ |
@@ -1015,7 +1005,7 @@ void Call::OnAllocationLimitsChanged(uint32_t min_send_bitrate_bps, |
void Call::ConfigureSync(const std::string& sync_group) { |
// Set sync only if there was no previous one. |
- if (voice_engine() == nullptr || sync_group.empty()) |
+ if (sync_group.empty()) |
return; |
AudioReceiveStream* sync_audio_stream = nullptr; |
@@ -1052,11 +1042,11 @@ void Call::ConfigureSync(const std::string& sync_group) { |
"the current implementation."; |
} |
// Only sync the first A/V pair within this sync group. |
- if (sync_audio_stream != nullptr && num_synced_streams == 1) { |
- video_stream->SetSyncChannel(voice_engine(), |
- sync_audio_stream->config().voe_channel_id); |
+ if (num_synced_streams == 1) { |
+ // sync_audio_stream may be null and that's ok. |
+ video_stream->SetSync(sync_audio_stream); |
} else { |
- video_stream->SetSyncChannel(voice_engine(), -1); |
+ video_stream->SetSync(nullptr); |
} |
} |
} |