Release player in e2e playback tests.

Not releasing the player means the playback thread keeps running
and also keeps its entire allocated playback buffer.

PiperOrigin-RevId: 330958821
This commit is contained in:
tonihei 2020-09-10 18:01:01 +01:00 committed by Oliver Woodman
parent a67bebc1c9
commit c75077cb9e
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public class Mp4PlaybackTest {
player.prepare();
player.play();
TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED);
player.release();
DumpFileAsserts.assertOutput(
ApplicationProvider.getApplicationContext(),

View File

@ -55,6 +55,7 @@ public class TsPlaybackTest {
player.prepare();
player.play();
TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED);
player.release();
DumpFileAsserts.assertOutput(
ApplicationProvider.getApplicationContext(),