mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Don't re-init codec if DRM session is unchanged
This condition is trying to detect when it might be necessary to switch from a non-secure to a secure codec. This is not possible if the DRM session is unchanged, unless a different codec is required for some other reason (e.g., H264 -> H265), which is anyway handled by canKeepCodec below. PiperOrigin-RevId: 292909126
This commit is contained in:
parent
cda6cba5a5
commit
6d550ef2d6
1 changed files with 1 additions and 1 deletions
|
|
@ -1337,7 +1337,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||
|
||||
if ((sourceDrmSession == null && codecDrmSession != null)
|
||||
|| (sourceDrmSession != null && codecDrmSession == null)
|
||||
|| (sourceDrmSession != null
|
||||
|| (sourceDrmSession != codecDrmSession
|
||||
&& !codecInfo.secure
|
||||
&& maybeRequiresSecureDecoder(sourceDrmSession, newFormat))
|
||||
|| (Util.SDK_INT < 23 && sourceDrmSession != codecDrmSession)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue