diff options
author | xiaoqiny <quic_xiaoqiny@codeaurora.org> | 2015-01-13 17:59:04 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-04-13 13:54:55 -0700 |
commit | f888cedf170f6d3cc060cc14ad9c56918f3a03c3 (patch) | |
tree | 666c429913ec56e43948136169c3b46d50173745 /media/libstagefright/MPEG4Writer.cpp | |
parent | 0ecd6fb627dabf286b7742862e25a592bc1f606c (diff) | |
download | frameworks_av-f888cedf170f6d3cc060cc14ad9c56918f3a03c3.zip frameworks_av-f888cedf170f6d3cc060cc14ad9c56918f3a03c3.tar.gz frameworks_av-f888cedf170f6d3cc060cc14ad9c56918f3a03c3.tar.bz2 |
libstagefright: handle error when B-frame is sent to MPEG4Writer
Without this patch, writing B-frame to MediaMuxer will be blocked and
cannot return a result. This may cause an endless progress bar shown in
gallery when triming or muting some videos.
Change-Id: Ib9f902a57da470c0357ec68aab00a35fbb26fb77
CRs-Fixed: 521005
Diffstat (limited to 'media/libstagefright/MPEG4Writer.cpp')
-rw-r--r-- | media/libstagefright/MPEG4Writer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp index 24da000..6a8664e 100644 --- a/media/libstagefright/MPEG4Writer.cpp +++ b/media/libstagefright/MPEG4Writer.cpp @@ -2452,7 +2452,9 @@ status_t MPEG4Writer::Track::threadEntry() { ALOGE("timestampUs %" PRId64 " < lastTimestampUs %" PRId64 " for %s track", timestampUs, lastTimestampUs, trackName); copy->release(); - return UNKNOWN_ERROR; + err = UNKNOWN_ERROR; + mSource->notifyError(err); + return err; } // if the duration is different for this sample, see if it is close enough to the previous |