diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-10-12 20:08:53 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-12 20:08:53 -0700 |
commit | e75ed9693f6eda1fc3ac4f57cedb161daea908eb (patch) | |
tree | a70a757b96a5b17d10d92ddde41be375e614837a /media/libmediaplayerservice/nuplayer/NuPlayer.cpp | |
parent | 6c519b0663ff4df0daceb2670120b431791212bc (diff) | |
parent | 380d397b261d7a12d7d1be10756dc93670aeb017 (diff) | |
download | frameworks_av-e75ed9693f6eda1fc3ac4f57cedb161daea908eb.zip frameworks_av-e75ed9693f6eda1fc3ac4f57cedb161daea908eb.tar.gz frameworks_av-e75ed9693f6eda1fc3ac4f57cedb161daea908eb.tar.bz2 |
Merge "NuPlayer: Fix for PCM offload fallback on BT"
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.cpp')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayer.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index 91c2e6f..1805a47 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp @@ -131,6 +131,23 @@ private: DISALLOW_EVIL_CONSTRUCTORS(FlushDecoderAction); }; +struct NuPlayer::InstantiateDecoderAction : public Action { + InstantiateDecoderAction(bool audio, sp<DecoderBase> *decoder) + : mAudio(audio), + mdecoder(decoder) { + } + + virtual void execute(NuPlayer *player) { + player->instantiateDecoder(mAudio, mdecoder); + } + +private: + bool mAudio; + sp<DecoderBase> *mdecoder; + + DISALLOW_EVIL_CONSTRUCTORS(InstantiateDecoderAction); +}; + struct NuPlayer::PostMessageAction : public Action { PostMessageAction(const sp<AMessage> &msg) : mMessage(msg) { |