resume video rendering when app returns from background in legacy pacing mode

This commit is contained in:
True Zhuanjia
2026-02-07 18:05:03 +08:00
parent 375670beb4
commit 5480e15595
+1 -1
View File
@@ -936,7 +936,7 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit);
if (_framePacingMode == FramePacingModeLegacy || _framePacingMode == FramePacingModeOff) {
// Enqueue the next frame
[self->_displayLayer enqueueSampleBuffer:sampleBuffer];
if(!appDidEnterBackgroundWithoutPip) [self->_displayLayer enqueueSampleBuffer:sampleBuffer];
if (du->frameType == FRAME_TYPE_IDR) {
// Ensure the layer is visible now