From 8d1852683484c668bf37b86779f07ce7279c1053 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Mon, 12 Nov 2012 18:51:52 +0000 Subject: [PATCH] Fixes an incorrect if statement in vie_sync_module.cc. BUG=1071 Review URL: https://webrtc-codereview.appspot.com/937018 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3081 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/vie_sync_module.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webrtc/video_engine/vie_sync_module.cc b/webrtc/video_engine/vie_sync_module.cc index 5ec30878e..fb5612d51 100644 --- a/webrtc/video_engine/vie_sync_module.cc +++ b/webrtc/video_engine/vie_sync_module.cc @@ -155,10 +155,10 @@ WebRtc_Word32 ViESyncModule::Process() { int extra_audio_delay_ms = 0; // Calculate the necessary extra audio delay and desired total video // delay to get the streams in sync. - if (sync_->ComputeDelays(relative_delay_ms, - current_audio_delay_ms, - &extra_audio_delay_ms, - &total_video_delay_target_ms) != 0) { + if (!sync_->ComputeDelays(relative_delay_ms, + current_audio_delay_ms, + &extra_audio_delay_ms, + &total_video_delay_target_ms)) { return 0; } if (voe_sync_interface_->SetMinimumPlayoutDelay(