Remove unused output parameter in VCMReceiver::FrameForDecoding().
BUG= R=pbos@webrtc.org Review URL: https://codereview.webrtc.org/2104863002 . Cr-Commit-Position: refs/heads/master@{#13310}
This commit is contained in:
@ -73,9 +73,7 @@ class TestVCMReceiver : public ::testing::Test {
|
||||
}
|
||||
|
||||
bool DecodeNextFrame() {
|
||||
int64_t render_time_ms = 0;
|
||||
VCMEncodedFrame* frame =
|
||||
receiver_.FrameForDecoding(0, &render_time_ms, false);
|
||||
VCMEncodedFrame* frame = receiver_.FrameForDecoding(0, false);
|
||||
if (!frame)
|
||||
return false;
|
||||
receiver_.ReleaseFrame(frame);
|
||||
@ -409,7 +407,6 @@ TEST_F(VCMReceiverTimingTest, FrameForDecoding) {
|
||||
const int kFramePeriod = 40;
|
||||
int64_t arrive_timestamps[kNumFrames];
|
||||
int64_t render_timestamps[kNumFrames];
|
||||
int64_t next_render_time;
|
||||
|
||||
// Construct test samples.
|
||||
// render_timestamps are the timestamps stored in the Frame;
|
||||
@ -435,8 +432,7 @@ TEST_F(VCMReceiverTimingTest, FrameForDecoding) {
|
||||
// build bot to kill the test.
|
||||
while (num_frames_return < kNumFrames) {
|
||||
int64_t start_time = clock_.TimeInMilliseconds();
|
||||
VCMEncodedFrame* frame =
|
||||
receiver_.FrameForDecoding(kMaxWaitTime, &next_render_time, false);
|
||||
VCMEncodedFrame* frame = receiver_.FrameForDecoding(kMaxWaitTime, false);
|
||||
int64_t end_time = clock_.TimeInMilliseconds();
|
||||
|
||||
// In any case the FrameForDecoding should not wait longer than
|
||||
@ -467,7 +463,6 @@ TEST_F(VCMReceiverTimingTest, FrameForDecodingPreferLateDecoding) {
|
||||
|
||||
int64_t arrive_timestamps[kNumFrames];
|
||||
int64_t render_timestamps[kNumFrames];
|
||||
int64_t next_render_time;
|
||||
|
||||
int render_delay_ms;
|
||||
int max_decode_ms;
|
||||
@ -496,8 +491,8 @@ TEST_F(VCMReceiverTimingTest, FrameForDecodingPreferLateDecoding) {
|
||||
while (num_frames_return < kNumFrames) {
|
||||
int64_t start_time = clock_.TimeInMilliseconds();
|
||||
|
||||
VCMEncodedFrame* frame = receiver_.FrameForDecoding(
|
||||
kMaxWaitTime, &next_render_time, prefer_late_decoding);
|
||||
VCMEncodedFrame* frame =
|
||||
receiver_.FrameForDecoding(kMaxWaitTime, prefer_late_decoding);
|
||||
int64_t end_time = clock_.TimeInMilliseconds();
|
||||
if (frame) {
|
||||
EXPECT_EQ(frame->RenderTimeMs() - max_decode_ms - render_delay_ms,
|
||||
|
||||
Reference in New Issue
Block a user