Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2452163004: Stop using VoEVideoSync in Call/VideoReceiveStream. (Closed)
Patch Set: Don't expose RtpRtcp module in Syncable Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/video/video_receive_stream.cc
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc
index 7835e779b0dca5aa11fe5c79f20a3976bd47b9c5..40b56f1f7acadc696e0ad88389bcfecbf863341e 100644
--- a/webrtc/video/video_receive_stream.cc
+++ b/webrtc/video/video_receive_stream.cc
@@ -33,7 +33,6 @@
#include "webrtc/video/call_stats.h"
#include "webrtc/video/receive_statistics_proxy.h"
#include "webrtc/video_receive_stream.h"
-#include "webrtc/voice_engine/include/voe_video_sync.h"
namespace webrtc {
@@ -191,7 +190,6 @@ VideoReceiveStream::VideoReceiveStream(
CongestionController* congestion_controller,
PacketRouter* packet_router,
VideoReceiveStream::Config config,
- webrtc::VoiceEngine* voice_engine,
ProcessThread* process_thread,
CallStats* call_stats,
VieRemb* remb)
@@ -357,15 +355,8 @@ void VideoReceiveStream::Stop() {
transport_adapter_.Disable();
}
-void VideoReceiveStream::SetSyncChannel(VoiceEngine* voice_engine,
- int audio_channel_id) {
- if (voice_engine && audio_channel_id != -1) {
- VoEVideoSync* voe_sync_interface = VoEVideoSync::GetInterface(voice_engine);
- rtp_stream_sync_.ConfigureSync(audio_channel_id, voe_sync_interface);
- voe_sync_interface->Release();
- } else {
- rtp_stream_sync_.ConfigureSync(-1, nullptr);
- }
+void VideoReceiveStream::SetSync(Syncable* syncable) {
+ rtp_stream_sync_.ConfigureSync(syncable);
}
VideoReceiveStream::Stats VideoReceiveStream::GetStats() const {

Powered by Google App Engine
This is Rietveld 408576698