resume video rendering when app returns from background in legacy pacing mode
This commit is contained in:
1 parent
375670beb4
commit
5480e15595
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user