Do not use no codec passthrough with a sourceDrmSession

PiperOrigin-RevId: 319183486
This commit is contained in:
krocard 2020-07-01 09:43:16 +01:00 committed by Oliver Woodman
parent 22802506cd
commit 7d46be5564

View File

@ -550,7 +550,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
return; return;
} }
if (inputFormat.drmInitData == null && usePassthrough(inputFormat)) { if (sourceDrmSession == null && usePassthrough(inputFormat)) {
initPassthrough(inputFormat); initPassthrough(inputFormat);
return; return;
} }