OSDN Git Service

PlayerBase: unregistration in player release
authorJean-Michel Trivi <jmtrivi@google.com>
Sat, 21 Jan 2017 23:53:11 +0000 (15:53 -0800)
committerJean-Michel Trivi <jmtrivi@google.com>
Sat, 21 Jan 2017 23:53:11 +0000 (15:53 -0800)
commite9630038872065874c66c8f120555cf09d1ee060
tree2a1f74a8714f6b048db321f390540b4f8d389732
parent9a33bda0709f112d67635dbd72cb82d306726200
PlayerBase: unregistration in player release

The player state of PlayerBase was not kept in sync with its
  corresponding AudioPlaybackConfiguration. This caused
  the configuration to never be removed and gc'd because
  the state of PlayerBase when released was always the
  unitialized state of 0 == released state.

Test: use a MediaPlayer then call release, verify the player
  is not showing in the AudioService dumpsys
Bug: 30258418

Change-Id: I9a6704147949e1e45752e646648c8c882376752f
media/java/android/media/PlayerBase.java