Commit 073c92ed by olly Committed by Oliver Woodman

Don't send playback info updates when released.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178916145
parent 2cbf0ef0
...@@ -336,9 +336,6 @@ import java.io.IOException; ...@@ -336,9 +336,6 @@ import java.io.IOException;
case MSG_STOP: case MSG_STOP:
stopInternal(/* reset= */ msg.arg1 != 0, /* acknowledgeStop= */ true); stopInternal(/* reset= */ msg.arg1 != 0, /* acknowledgeStop= */ true);
break; break;
case MSG_RELEASE:
releaseInternal();
break;
case MSG_PERIOD_PREPARED: case MSG_PERIOD_PREPARED:
handlePeriodPrepared((MediaPeriod) msg.obj); handlePeriodPrepared((MediaPeriod) msg.obj);
break; break;
...@@ -354,6 +351,10 @@ import java.io.IOException; ...@@ -354,6 +351,10 @@ import java.io.IOException;
case MSG_CUSTOM: case MSG_CUSTOM:
sendMessagesInternal((ExoPlayerMessage[]) msg.obj); sendMessagesInternal((ExoPlayerMessage[]) msg.obj);
break; break;
case MSG_RELEASE:
releaseInternal();
// Return immediately to not send playback info updates after release.
return true;
default: default:
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment