commit | 2b95bda111444f2834e64221e3a3eb1a87d43c38 | [log] [tgz] |
---|---|---|
author | Robert Shih <robertshih@google.com> | Wed Jul 22 10:11:51 2015 -0700 |
committer | Robert Shih <robertshih@google.com> | Thu Jul 23 18:03:57 2015 -0700 |
tree | 992e4a4a6cc24d8e17f58b14aa6840009c8fbc9c | |
parent | f8f669d7a727e4ad5505cd85741f4d50dbaffbf9 [diff] |
Explicitly disconnect in MediaPlayer::reset Even without calling disconnect in MediaPlayer::reset, MediaPlayerService::Client (which lives on the other side of a binder with MediaPlayer) would still perform a disconnect in its destructor. Object destruction across binder is not synchronous, but method calls are. This commit merely makes sure that the disconnect happens deterministically before reset returns. Bug: 22451733 Change-Id: Id9146a63a1872d68087a252aa614248b16d2556d