Chromium Code Reviews| Index: webrtc/modules/audio_coding/test/APITest.cc |
| diff --git a/webrtc/modules/audio_coding/test/APITest.cc b/webrtc/modules/audio_coding/test/APITest.cc |
| index bf04d7c8252f0ed95264ceee19aa5849404549d3..cbfd93310c07df5da4fac292b9ac50bb99f9d903 100644 |
| --- a/webrtc/modules/audio_coding/test/APITest.cc |
| +++ b/webrtc/modules/audio_coding/test/APITest.cc |
| @@ -688,7 +688,7 @@ void APITest::TestDelay(char side) { |
| CHECK_ERROR_MT(myACM->SetMinimumPlayoutDelay(*myMinDelay)); |
| inTimestamp = myChannel->LastInTimestamp(); |
| - CHECK_ERROR_MT(myACM->PlayoutTimestamp(&outTimestamp)); |
| + CHECK_ERROR_MT(myACM->PlayoutTimestamp() ? 0 : -1); |
| if (!_randomTest) { |
| myEvent->StartTimer(true, 30); |
| @@ -698,7 +698,7 @@ void APITest::TestDelay(char side) { |
| myEvent->Wait(1000); |
| inTimestamp = myChannel->LastInTimestamp(); |
| - CHECK_ERROR_MT(myACM->PlayoutTimestamp(&outTimestamp)); |
| + CHECK_ERROR_MT(myACM->PlayoutTimestamp() ? 0 : -1); |
| //std::cout << outTimestamp << std::endl << std::flush; |
| estimDelay = (double) ((uint32_t)(inTimestamp - outTimestamp)) |
|
minyue-webrtc
2016/04/04 15:53:50
no value assigned to outTimestam
hlundin-webrtc
2016/04/04 21:02:54
Ouch. My bad. Thanks for catching this.
|