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
diff --git a/webrtc/video_engine/vie_sync_module.cc b/webrtc/video_engine/vie_sync_module.cc
index 488365d..aecfa2a 100644
--- a/webrtc/video_engine/vie_sync_module.cc
+++ b/webrtc/video_engine/vie_sync_module.cc
@@ -153,7 +153,7 @@
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,