mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Move clearing of joining deadline back to onStopped
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159421000
This commit is contained in:
parent
92206b9fc2
commit
76faa5b6d2
@ -480,11 +480,11 @@ public final class LibvpxVideoRenderer extends BaseRenderer {
|
||||
protected void onStarted() {
|
||||
droppedFrames = 0;
|
||||
droppedFrameAccumulationStartTimeMs = SystemClock.elapsedRealtime();
|
||||
joiningDeadlineMs = C.TIME_UNSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStopped() {
|
||||
joiningDeadlineMs = C.TIME_UNSET;
|
||||
maybeNotifyDroppedFrames();
|
||||
}
|
||||
|
||||
|
@ -260,11 +260,11 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||
super.onStarted();
|
||||
droppedFrames = 0;
|
||||
droppedFrameAccumulationStartTimeMs = SystemClock.elapsedRealtime();
|
||||
joiningDeadlineMs = C.TIME_UNSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStopped() {
|
||||
joiningDeadlineMs = C.TIME_UNSET;
|
||||
maybeNotifyDroppedFrames();
|
||||
super.onStopped();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user