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:
kimvde 2024-09-02 05:18:14 -07:00 committed by Copybara-Service
parent b3b4c80641
commit 748e4e5230

View File

@ -113,6 +113,18 @@ public final class ExoplayerEffectPlaybackSeekTest {
}
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(