diff options
author | Marco Nelissen <marcone@google.com> | 2015-10-08 10:00:34 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2015-10-13 12:38:13 -0700 |
commit | b345ddc3c728359166375af6f19367f547bbd613 (patch) | |
tree | c613b70d29a9db29c294cb03bbf3009e7f440fd1 /media | |
parent | d805214cec5219eef42346cc136effe89292ac69 (diff) | |
download | frameworks_av-b345ddc3c728359166375af6f19367f547bbd613.zip frameworks_av-b345ddc3c728359166375af6f19367f547bbd613.tar.gz frameworks_av-b345ddc3c728359166375af6f19367f547bbd613.tar.bz2 |
Don't send OnCompletion events when looping
AwesomePlayer never did, and neither should NuPlayer.
Bug: 18656047
Change-Id: Ia9abe42cfe6ea643633cec859e9da770092569bb
Diffstat (limited to 'media')
-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 7370224..6419be0 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp @@ -747,7 +747,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(); |