OSDN Git Service

NJ-1422 :- Native crash after record the 1 min video
authorSahil Sachdeva <sahils@google.com>
Mon, 1 Jun 2009 18:34:43 +0000 (11:34 -0700)
committerSahil Sachdeva <sahils@google.com>
Wed, 3 Jun 2009 01:12:40 +0000 (18:12 -0700)
commitb2b67cd32e4a8a5fe969ef0ab2cc1a270d801093
tree814aadeff631cc66943961af83d3fc74bd128824
parent2843ddc9e8793dbc4e7b8bc5b1c9a6d2c2beef41
NJ-1422 :- Native crash after record the 1 min video
After 1min of recording AuthorEngine issues an internal Stop()
which Stops the MediaInputNode port and queues Stop on MIO component.
MIO component still has some data queued in its queue and keeps sending
data to MediaInputNode. MediaInputNode port does a OsclLeave with OsclErrNotReady
since it has moved to Stopped State. Audio MIO does not handle this leave and leave is
transferred to upper leaves, resulting in Abort. Fixed Audio MIO to handle leave properly
by adding TRY CATCH block around writeAsync call.
TBD - We need to also make sure that leave is caught in PlayerDriver and AuthorDriver rather
thank transferring it to upper layers, so that we can avoid call of abort and avoiding a crash.
android/author/android_audio_input.cpp