summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2015-10-08 10:00:34 -0700
committerMarco Nelissen <marcone@google.com>2015-10-13 12:38:13 -0700
commitb345ddc3c728359166375af6f19367f547bbd613 (patch)
treec613b70d29a9db29c294cb03bbf3009e7f440fd1 /media
parentd805214cec5219eef42346cc136effe89292ac69 (diff)
downloadframeworks_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.cpp3
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();