commit | 3c578f2d6ad0cd7a31e2f947f6bb41d05c15c1f2 | [log] [tgz] |
---|---|---|
author | Gloria Wang <gwang@google.com> | Thu Aug 18 14:52:36 2011 -0700 |
committer | Gloria Wang <gwang@google.com> | Thu Aug 18 14:52:36 2011 -0700 |
tree | 5daa04c8f77a2c43570dd2433148bfe51dc286a2 | |
parent | 5a9ffaa4cb58be595ba57d4078988d0496781063 [diff] |
When switching surface, do not set mSeekNotificationSent as true, because there could be a previous uncompleted seeking which needs to send back MEDIA_SEEK_COMPLETE message. If we set mSeekNotificationSent as true here, then mediaplayer.cpp will be waiting for message MEDIA_SEEK_COMPLETE. The getCurrentPosition() will always return the seek time before MEDIA_SEEK_COMPLETE being received by mediaplayer.cpp. Fix for bug 5181272. Change-Id: I290aff29b6d9ec8db67c66abbe1f352a43f57073