From 7262ad138597cda5c868cd8b6f983b47abeb97e4 Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Sat, 15 Jun 2013 06:51:27 +0000 Subject: [PATCH] Fix AV sync issue r4229 introduced an AV sync issue due to an error. This is a one linear fix and provides the correct current video delay for synchronization. TBR=wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1675004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4231 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/vie_sync_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/video_engine/vie_sync_module.cc b/webrtc/video_engine/vie_sync_module.cc index 488365d320..aecfa2a426 100644 --- a/webrtc/video_engine/vie_sync_module.cc +++ b/webrtc/video_engine/vie_sync_module.cc @@ -153,7 +153,7 @@ int32_t ViESyncModule::Process() { TRACE_COUNTER1("webrtc", "SyncCurrentAudioDelay", current_audio_delay_ms); TRACE_COUNTER1("webrtc", "SyncRelativeDelay", relative_delay_ms); int target_audio_delay_ms = 0; - int target_video_delay_ms = 0; + int target_video_delay_ms = current_video_delay_ms; // Calculate the necessary extra audio delay and desired total video // delay to get the streams in sync. if (!sync_->ComputeDelays(relative_delay_ms,