diff options
author | Marco Nelissen <marcone@google.com> | 2015-10-08 10:00:34 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-05 21:16:19 -0800 |
commit | 8c130fe49b04220fcb1c33e955b5aca1fdd108a6 (patch) | |
tree | 48d9af3c2d522f6b43c763e2169990c1f0b2c859 | |
parent | ccf30dd45a956edb1d8b35c30dcff81db351eadc (diff) | |
download | frameworks_av-8c130fe49b04220fcb1c33e955b5aca1fdd108a6.zip frameworks_av-8c130fe49b04220fcb1c33e955b5aca1fdd108a6.tar.gz frameworks_av-8c130fe49b04220fcb1c33e955b5aca1fdd108a6.tar.bz2 |
Don't send OnCompletion events when looping
AwesomePlayer never did, and neither should NuPlayer.
Bug: 18656047
Change-Id: Ia9abe42cfe6ea643633cec859e9da770092569bb
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp index a294d36..8727907 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp @@ -753,7 +753,8 @@ void NuPlayerDriver::notifyListener_l( // the last little bit of audio. If we're looping, we need to restart it. mAudioSink->start(); } - break; + // don't send completion event when looping + return; } mPlayer->pause(); |