OSDN Git Service

NuPlayer: update timestamp handling
authorAndy Hung <hunga@google.com>
Fri, 12 Sep 2014 22:12:16 +0000 (15:12 -0700)
committerLajos Molnar <lajos@google.com>
Wed, 17 Sep 2014 23:04:08 +0000 (16:04 -0700)
commit09e0c3646362d29c78bc26c8b23b7a753c412e6c
tree5bb2d57554838f54d1deccf985135cc46acd9439
parent06ad1528e6dd4c866c085d3cad9235d2752eb3ed
NuPlayer: update timestamp handling

Use getTimestamp WOULD_BLOCK error return code to clean up
initial playback/start timestamp handling.

Account for pause time and seeks.
Only send notification from driver when the media time changes.

Bug: 14659809
Bug: 17428188
Change-Id: I051bb5e2dd4fd5990474f8fb635615ad8d18eb2c
media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp
media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp
media/libmediaplayerservice/nuplayer/NuPlayerRenderer.h