Skip to content

Commit

Permalink
Retain decoder instance after the renderer is disabled
Browse files Browse the repository at this point in the history
Issue: #2826

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=216852679
  • Loading branch information
ojw28 committed Oct 15, 2018
1 parent 842f622 commit ba6a118
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,16 @@ public final void setOperatingRate(float operatingRate) throws ExoPlaybackExcept

@Override
protected void onDisabled() {
if (drmSession != null || pendingDrmSession != null) {
// TODO: Do something better with this case.
onReset();
} else {
flushOrReleaseCodec();
}
}

@Override
protected void onReset() {
format = null;
availableCodecInfos = null;
try {
Expand Down

0 comments on commit ba6a118

Please sign in to comment.