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:
parent
a67bebc1c9
commit
c75077cb9e
@ -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 {
|
|||||||
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(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user