diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2014-09-05 11:20:11 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2014-09-05 11:58:39 -0700 |
commit | 640adb3cf89cc9b826372009fad8c9b3d120482e (patch) | |
tree | e51644f1d307b920cf35e364c7d7562a604ef9a5 /include/media | |
parent | f2a2d0d6731174f5ce2a7b9d6dfd96dd7f1727a4 (diff) | |
download | frameworks_av-640adb3cf89cc9b826372009fad8c9b3d120482e.zip frameworks_av-640adb3cf89cc9b826372009fad8c9b3d120482e.tar.gz frameworks_av-640adb3cf89cc9b826372009fad8c9b3d120482e.tar.bz2 |
Cache audio attributes when player not available
Cache the audio attributes stored in a Parcel in the client-side
MediaPlayer object if they are set through setParameter()
before the server-side MediaPlayer is available. Apply them when
the player is prepared.
Bug 17280746
Change-Id: I72f1a7fc4e2b076fae8cbdede77a2f74e98b2a03
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/mediaplayer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h index 2442219..9cc208e 100644 --- a/include/media/mediaplayer.h +++ b/include/media/mediaplayer.h @@ -278,6 +278,7 @@ private: bool mPrepareSync; status_t mPrepareStatus; audio_stream_type_t mStreamType; + Parcel* mAudioAttributesParcel; bool mLoop; float mLeftVolume; float mRightVolume; |