Commit 267cc537 by tonihei Committed by Oliver Woodman

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
parent 03323278
...@@ -55,6 +55,7 @@ public class Mp4PlaybackTest { ...@@ -55,6 +55,7 @@ public class Mp4PlaybackTest {
player.prepare(); player.prepare();
player.play(); player.play();
TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED); TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED);
player.release();
DumpFileAsserts.assertOutput( DumpFileAsserts.assertOutput(
ApplicationProvider.getApplicationContext(), ApplicationProvider.getApplicationContext(),
......
...@@ -55,6 +55,7 @@ public class TsPlaybackTest { ...@@ -55,6 +55,7 @@ public class TsPlaybackTest {
player.prepare(); player.prepare();
player.play(); player.play();
TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED); TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED);
player.release();
DumpFileAsserts.assertOutput( DumpFileAsserts.assertOutput(
ApplicationProvider.getApplicationContext(), ApplicationProvider.getApplicationContext(),
......
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