diff options
author | Satya Krishna Pindiproli <satyak@codeaurora.org> | 2012-05-15 18:59:21 +0530 |
---|---|---|
committer | Giulio Cervera <giulio.cervera@gmail.com> | 2012-06-06 15:25:53 +0200 |
commit | 349223e05589b66d9d86ea8522bbf19cd7fd5794 (patch) | |
tree | d4e63616c3bc2ab0770f225c0c4b3a5383b844b2 /include | |
parent | e991a3ae46c6cf53553313426b0381e680080fd6 (diff) | |
download | frameworks_base-349223e05589b66d9d86ea8522bbf19cd7fd5794.zip frameworks_base-349223e05589b66d9d86ea8522bbf19cd7fd5794.tar.gz frameworks_base-349223e05589b66d9d86ea8522bbf19cd7fd5794.tar.bz2 |
libstagefright: Fix for seek before end of clip issue
- When the clip is seeked to just before the end of the clip,
the control skips to next track instead of the remaining part
of the clip being played.
- When the clip is seeked, in LPAPlayerALSA, fillBuffer() is
called which sets mReachedEOS to true when the last buffer
is reached. AwesomePlayer on the other hand calls
onCheckAudioStatus() after seek complete which in turn
checks if reachedEOS() returns true in LPAPlayerALSA and
calls postStreamDoneEvent(). Currently, reachedEOS() returns
mReachedEOS which is incorrect because there still are
buffers to be written to the DSP.
- Before postAudioEOS() is called, mReachedOutputEOS is set to
true and is returned by reachedEOS().
CRs-Fixed: 339602 359591
(cherry picked from commit fe2345716be459f38088df2af79b53b1acf71d36)
Change-Id: I1334c8b0ab1e1d6cc386cc770c73ddc50af25c2e
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/LPAPlayer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/LPAPlayer.h b/include/media/stagefright/LPAPlayer.h index 0326d97..70c71f7 100644 --- a/include/media/stagefright/LPAPlayer.h +++ b/include/media/stagefright/LPAPlayer.h @@ -270,6 +270,7 @@ private: bool mSeeking;
bool mInternalSeeking;
bool mReachedEOS;
+ bool mReachedOutputEOS; status_t mFinalStatus;
int64_t mSeekTimeUs;
int64_t mPauseTime;
|