Loading media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,11 @@ NuPlayer::Decoder::Decoder( } NuPlayer::Decoder::~Decoder() { // Need to stop looper first since mCodec could be accessed on the mDecoderLooper. stopLooper(); if (mCodec != NULL) { mCodec->release(); } releaseAndResetMediaBuffers(); } Loading media/libmediaplayerservice/nuplayer/NuPlayerDecoderBase.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -43,8 +43,7 @@ NuPlayer::DecoderBase::DecoderBase(const sp<AMessage> ¬ify) } NuPlayer::DecoderBase::~DecoderBase() { mDecoderLooper->unregisterHandler(id()); mDecoderLooper->stop(); stopLooper(); } static Loading Loading @@ -73,6 +72,11 @@ void NuPlayer::DecoderBase::init() { mDecoderLooper->registerHandler(this); } void NuPlayer::DecoderBase::stopLooper() { mDecoderLooper->unregisterHandler(id()); mDecoderLooper->stop(); } void NuPlayer::DecoderBase::setParameters(const sp<AMessage> ¶ms) { sp<AMessage> msg = new AMessage(kWhatSetParameters, this); msg->setMessage("params", params); Loading media/libmediaplayerservice/nuplayer/NuPlayerDecoderBase.h +2 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,8 @@ protected: virtual ~DecoderBase(); void stopLooper(); virtual void onMessageReceived(const sp<AMessage> &msg); virtual void onConfigure(const sp<AMessage> &format) = 0; Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,11 @@ NuPlayer::Decoder::Decoder( } NuPlayer::Decoder::~Decoder() { // Need to stop looper first since mCodec could be accessed on the mDecoderLooper. stopLooper(); if (mCodec != NULL) { mCodec->release(); } releaseAndResetMediaBuffers(); } Loading
media/libmediaplayerservice/nuplayer/NuPlayerDecoderBase.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -43,8 +43,7 @@ NuPlayer::DecoderBase::DecoderBase(const sp<AMessage> ¬ify) } NuPlayer::DecoderBase::~DecoderBase() { mDecoderLooper->unregisterHandler(id()); mDecoderLooper->stop(); stopLooper(); } static Loading Loading @@ -73,6 +72,11 @@ void NuPlayer::DecoderBase::init() { mDecoderLooper->registerHandler(this); } void NuPlayer::DecoderBase::stopLooper() { mDecoderLooper->unregisterHandler(id()); mDecoderLooper->stop(); } void NuPlayer::DecoderBase::setParameters(const sp<AMessage> ¶ms) { sp<AMessage> msg = new AMessage(kWhatSetParameters, this); msg->setMessage("params", params); Loading
media/libmediaplayerservice/nuplayer/NuPlayerDecoderBase.h +2 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,8 @@ protected: virtual ~DecoderBase(); void stopLooper(); virtual void onMessageReceived(const sp<AMessage> &msg); virtual void onConfigure(const sp<AMessage> &format) = 0; Loading