diff options
author | Wei Jia <wjia@google.com> | 2014-09-24 14:25:19 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2014-09-24 14:32:18 -0700 |
commit | 4923cee4fb3b29538d8f46bceeea7d5128242a71 (patch) | |
tree | 31fb36a31d4e20ed63d74664b0db534d24ae6e06 /media | |
parent | 80ec934ae7d4e3a78af87554fdb77a58f6386ba0 (diff) | |
download | frameworks_av-4923cee4fb3b29538d8f46bceeea7d5128242a71.zip frameworks_av-4923cee4fb3b29538d8f46bceeea7d5128242a71.tar.gz frameworks_av-4923cee4fb3b29538d8f46bceeea7d5128242a71.tar.bz2 |
NuPlayerDecoder: release MediaBuffers when decoder is deleted.
Bug: 17454455
Change-Id: Ic984c74826f87f5f3c27756a7e7d52295a529bed
Diffstat (limited to 'media')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp index cdb860c..1b1b1c8 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp @@ -53,6 +53,10 @@ NuPlayer::Decoder::Decoder( } NuPlayer::Decoder::~Decoder() { + mDecoderLooper->unregisterHandler(id()); + mDecoderLooper->stop(); + + releaseAndResetMediaBuffers(); } static |