diff options
author | Chong Zhang <chz@google.com> | 2014-07-23 19:23:16 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-07-23 19:23:16 -0700 |
commit | d459e303f2f1d34c2b8c1af4f943747b20a8b1b2 (patch) | |
tree | 9715dad19e9f41a11a755a238f9d2d94951d3402 | |
parent | 4b0dfdbf2cd265947a9de476092290c0dd0a43ba (diff) | |
download | frameworks_av-d459e303f2f1d34c2b8c1af4f943747b20a8b1b2.zip frameworks_av-d459e303f2f1d34c2b8c1af4f943747b20a8b1b2.tar.gz frameworks_av-d459e303f2f1d34c2b8c1af4f943747b20a8b1b2.tar.bz2 |
signal mFrameAvailableCondition when AudioSource is stopped
This allows last read() to exit properly, otherwise it could get
stuck waiting for the condition forever.
Bug: 15849309
Change-Id: I79bba53630e59783a5fc041cfc5d3fdb2545cc2c
-rw-r--r-- | media/libstagefright/AudioSource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/AudioSource.cpp b/media/libstagefright/AudioSource.cpp index d9aed01..a67fabe 100644 --- a/media/libstagefright/AudioSource.cpp +++ b/media/libstagefright/AudioSource.cpp @@ -159,6 +159,8 @@ status_t AudioSource::reset() { waitOutstandingEncodingFrames_l(); releaseQueuedFrames_l(); + mFrameAvailableCondition.signal(); + return OK; } |