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

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