DescriptionFix VideoToolbox backgrounding issues.
When the iOS application is not in the foreground, the hardware encoder and
decoder become invalidated. There doesn't seem to be a way to query their state
so we don't know they're invalid until we get an error code after an
encode/decode request. To solve the issue, we just don't encode/decode when the
app is not active, and reinitialize the encoder/decoder when the app is active
again.
Also fixes a leak in the decoder.
BUG=webrtc:4081
Committed: https://crrev.com/5ed5ed953d2d0d667892a0bf528f65eb430cab18
Cr-Commit-Position: refs/heads/master@{#11916}
Patch Set 1 : #Patch Set 2 : Update gyp #
Total comments: 2
Patch Set 3 : Update return codes. #Patch Set 4 : Remove unneeded include. #
Total comments: 2
Patch Set 5 : Update comments. #
Total comments: 10
Patch Set 6 : Remove local bool #
Total comments: 4
Patch Set 7 : CR comments #Messages
Total messages: 29 (13 generated)
|