Fix hanging ExoPlayerPlaybackSeekTest
The test uses a video renderer to count the number of frames and could time out if some frames were dropped. PiperOrigin-RevId: 670181693
This commit is contained in:
parent
b3b4c80641
commit
748e4e5230
@ -113,6 +113,18 @@ public final class ExoplayerEffectPlaybackSeekTest {
|
|||||||
}
|
}
|
||||||
super.renderOutputBufferV21(codec, index, presentationTimeUs, releaseTimeNs);
|
super.renderOutputBufferV21(codec, index, presentationTimeUs, releaseTimeNs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean shouldDropOutputBuffer(
|
||||||
|
long earlyUs, long elapsedRealtimeUs, boolean isLastBuffer) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean shouldDropBuffersToKeyframe(
|
||||||
|
long earlyUs, long elapsedRealtimeUs, boolean isLastBuffer) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
instrumentation.runOnMainSync(
|
instrumentation.runOnMainSync(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user