mirror of
https://github.com/samsonjs/media.git
synced 2026-04-15 12:55:46 +00:00
Be robust against provideProvisionResponse throwing unchecked exceptions
Other catch blocks in this class catch everything. This one should too. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173118891
This commit is contained in:
parent
43d70bdde9
commit
3289e3e9cb
1 changed files with 1 additions and 2 deletions
|
|
@ -17,7 +17,6 @@ package com.google.android.exoplayer2.drm;
|
|||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.TargetApi;
|
||||
import android.media.DeniedByServerException;
|
||||
import android.media.NotProvisionedException;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
|
|
@ -281,7 +280,7 @@ import java.util.UUID;
|
|||
|
||||
try {
|
||||
mediaDrm.provideProvisionResponse((byte[]) response);
|
||||
} catch (DeniedByServerException e) {
|
||||
} catch (Exception e) {
|
||||
provisioningManager.onProvisionError(e);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue