OSDN Git Service

MediaPlayer: setSubtitleAnchor on a HandlerThread
authorRobert Shih <robertshih@google.com>
Mon, 4 May 2015 16:38:31 +0000 (09:38 -0700)
committerRobert Shih <robertshih@google.com>
Mon, 4 May 2015 23:38:30 +0000 (16:38 -0700)
commit98b6842e30813d9e6bd052bfb8012d4f4743b217
tree2f2cbe14caabbcd15df7f4b2b1c37df15e4df97d
parentaba035d2ed4a0c39d59ca039b52af2bc3f5980b4
MediaPlayer: setSubtitleAnchor on a HandlerThread

This ensures that we wouldn't run into the error `Can't create handler
inside thread that has not called Looper.prepare` no matter on which
thread we attempt to set the SubtitleController internally.

Bug: 20821869
Change-Id: Ie53d60b58f5382428e7b7a01deccfa516b61b25f
media/java/android/media/MediaPlayer.java