mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +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
|
||||
protected void onQueueInputBuffer(DecoderInputBuffer buffer) {
|
||||
super.onQueueInputBuffer(buffer);
|
||||
insertTimestamp(buffer.timeUs);
|
||||
maybeShiftTimestampsList();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onProcessedOutputBuffer(long presentationTimeUs) {
|
||||
super.onProcessedOutputBuffer(presentationTimeUs);
|
||||
bufferCount++;
|
||||
long expectedTimestampUs = dequeueTimestamp();
|
||||
if (expectedTimestampUs != presentationTimeUs) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue