mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
No-op fix for playback tests
super.onQueueInputBuffer is no longer a no-op in all configurations. It doesn't make any difference in practice for these tests, but for completeness we should call up. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150056224
This commit is contained in:
parent
7c587c6b82
commit
a26cb9cc3c
1 changed files with 2 additions and 0 deletions
|
|
@ -99,12 +99,14 @@ public class DebugSimpleExoPlayer extends SimpleExoPlayer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onQueueInputBuffer(DecoderInputBuffer buffer) {
|
protected void onQueueInputBuffer(DecoderInputBuffer buffer) {
|
||||||
|
super.onQueueInputBuffer(buffer);
|
||||||
insertTimestamp(buffer.timeUs);
|
insertTimestamp(buffer.timeUs);
|
||||||
maybeShiftTimestampsList();
|
maybeShiftTimestampsList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onProcessedOutputBuffer(long presentationTimeUs) {
|
protected void onProcessedOutputBuffer(long presentationTimeUs) {
|
||||||
|
super.onProcessedOutputBuffer(presentationTimeUs);
|
||||||
bufferCount++;
|
bufferCount++;
|
||||||
long expectedTimestampUs = dequeueTimestamp();
|
long expectedTimestampUs = dequeueTimestamp();
|
||||||
if (expectedTimestampUs != presentationTimeUs) {
|
if (expectedTimestampUs != presentationTimeUs) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue