aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSahil Sachdeva <sahils@google.com>2009-10-29 18:17:26 -0700
committerJames Dong <jdong@google.com>2009-11-02 12:27:19 -0800
commit52da2441fc61995154c09f07cd31b3902842f2fa (patch)
tree952a8209fa9e2d51bf63f99fabffd12606d022c5
parentcd95835e611776ab755867cbb9ed4be7fc6a103f (diff)
downloadopencore-52da2441fc61995154c09f07cd31b3902842f2fa.tar.gz
DO NOT MERGE TO MR2
[RIO-7781] OsclLeave 113 with AMRNB audio-only recording bug 2194094 Cherry-picked from mr2 branch
-rw-r--r--android/author/android_audio_input.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/author/android_audio_input.cpp b/android/author/android_audio_input.cpp
index e2fcc0d78..f7539cc3d 100644
--- a/android/author/android_audio_input.cpp
+++ b/android/author/android_audio_input.cpp
@@ -804,6 +804,9 @@ PVMFCommandId AndroidAudioInput::AddCmdToQueue(AndroidAudioInputCmdType aType,
////////////////////////////////////////////////////////////////////////////
void AndroidAudioInput::AddDataEventToQueue(uint32 aMicroSecondsToEvent)
{
+ // If not added to the scheduler just return
+ if (!IsAdded())
+ return;
AndroidAudioInputCmd cmd;
cmd.iType = AI_DATA_WRITE_EVENT;
iCmdQueue.push_back(cmd);