diff options
author | Andy Hung <hunga@google.com> | 2015-03-20 00:38:32 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2015-03-20 00:38:32 -0700 |
commit | 7ccdaad38054474b1d84b7c37ceffd98e9df354d (patch) | |
tree | 4c6c60bae9e890801c4c3486cc2836543e6f71af /media/libmedia/AudioTrack.cpp | |
parent | 0e4421286b92a81e952f53210227adbf05d97c25 (diff) | |
download | frameworks_av-7ccdaad38054474b1d84b7c37ceffd98e9df354d.zip frameworks_av-7ccdaad38054474b1d84b7c37ceffd98e9df354d.tar.gz frameworks_av-7ccdaad38054474b1d84b7c37ceffd98e9df354d.tar.bz2 |
Fix position when restoring streaming audio track
Bug: 19802225
Change-Id: I19ca7836bc89627f6cead4961641b94c6b27b5f6
Diffstat (limited to 'media/libmedia/AudioTrack.cpp')
-rw-r--r-- | media/libmedia/AudioTrack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index c775e7b..2f7055f 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp @@ -1857,7 +1857,7 @@ status_t AudioTrack::restoreTrack_l(const char *from) // For streaming tracks, this is the amount we obtained from the user/client // (not the number actually consumed at the server - those are already lost). (void) updateAndGetPosition_l(); - if (mStaticProxy != 0) { + if (mStaticProxy == 0) { mPosition = mReleased; } |