mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix not setting videoSinkNeedsRegisterInputStream when seeking
PiperOrigin-RevId: 649093092
This commit is contained in:
parent
4c1807781f
commit
8632c3add6
1 changed files with 1 additions and 0 deletions
|
|
@ -739,6 +739,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer
|
||||||
videoSink.flush(/* resetPosition= */ true);
|
videoSink.flush(/* resetPosition= */ true);
|
||||||
videoSink.setStreamOffsetAndAdjustmentUs(
|
videoSink.setStreamOffsetAndAdjustmentUs(
|
||||||
getOutputStreamOffsetUs(), getBufferTimestampAdjustmentUs());
|
getOutputStreamOffsetUs(), getBufferTimestampAdjustmentUs());
|
||||||
|
videoSinkNeedsRegisterInputStream = true;
|
||||||
}
|
}
|
||||||
super.onPositionReset(positionUs, joining);
|
super.onPositionReset(positionUs, joining);
|
||||||
if (videoSink == null) {
|
if (videoSink == null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue