summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
diff options
context:
space:
mode:
authorPreetam Singh Ranawat <apranawat@codeaurora.org>2015-08-06 10:43:16 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:45 -0600
commitc9513cd3baa81cd99752bcce8d998a6a2ee2af57 (patch)
treef04b1176f54ba5d2ee6d651aad7a559d43a7a8ad /media/libmediaplayerservice/nuplayer/NuPlayer.cpp
parent7073a04c8c51771d80d3180d83814de51062b3b7 (diff)
downloadframeworks_av-c9513cd3baa81cd99752bcce8d998a6a2ee2af57.zip
frameworks_av-c9513cd3baa81cd99752bcce8d998a6a2ee2af57.tar.gz
frameworks_av-c9513cd3baa81cd99752bcce8d998a6a2ee2af57.tar.bz2
NuPlayer : send the correct streaming info while opening audio sink
-For any offload playback NuPlayerRenderer always open the audio sink with isStreaming info as true. -Pass the streaming info to the NuPlayerRenderer while opening audio sink Change-Id: Ic9d5e7ae0b82a316ec4b4a72037519448f1a011c
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.cpp')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
index 3daa728..1767eb0 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -1446,7 +1446,7 @@ void NuPlayer::tryOpenAudioSinkForOffload(const sp<AMessage> &format, bool hasVi
// is possible; otherwise the decoders call the renderer openAudioSink directly.
status_t err = mRenderer->openAudioSink(
- format, true /* offloadOnly */, hasVideo, AUDIO_OUTPUT_FLAG_NONE, &mOffloadAudio);
+ format, true /* offloadOnly */, hasVideo, AUDIO_OUTPUT_FLAG_NONE, &mOffloadAudio, mSource->isStreaming());
if (err != OK) {
// Any failure we turn off mOffloadAudio.
mOffloadAudio = false;