Don't send playback info updates when released.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=178916145
This commit is contained in:
parent
2cbf0ef0ab
commit
073c92ed36
@ -336,9 +336,6 @@ import java.io.IOException;
|
||||
case MSG_STOP:
|
||||
stopInternal(/* reset= */ msg.arg1 != 0, /* acknowledgeStop= */ true);
|
||||
break;
|
||||
case MSG_RELEASE:
|
||||
releaseInternal();
|
||||
break;
|
||||
case MSG_PERIOD_PREPARED:
|
||||
handlePeriodPrepared((MediaPeriod) msg.obj);
|
||||
break;
|
||||
@ -354,6 +351,10 @@ import java.io.IOException;
|
||||
case MSG_CUSTOM:
|
||||
sendMessagesInternal((ExoPlayerMessage[]) msg.obj);
|
||||
break;
|
||||
case MSG_RELEASE:
|
||||
releaseInternal();
|
||||
// Return immediately to not send playback info updates after release.
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user