commit | d24affe100fb9ebcdabef47068e7a0f728a3a44e | [log] [tgz] |
---|---|---|
author | Hangyu Kuang <hkuang@google.com> | Mon Sep 19 16:33:26 2016 -0700 |
committer | Hangyu Kuang <hkuang@google.com> | Mon Sep 19 17:06:30 2016 -0700 |
tree | 1be2fc7cc3f938b5b04aaab05ea1e3f4e699ace8 | |
parent | 7b973eb89ea7088fe82f457cd10013bbe739bba4 [diff] |
media: Fix memory leak when recording duration exceeds duration limit. When recording got to the duration limit, MPEG4Writer should also stop the source before exiting the loop. This will stop the video/audio encoder from copying and encoding buffer. Otherwise, those encoded buffers will be leaked as they are not released inside MPEG4Writer. Also fix the other cases when malformed file is generated. Bug:31530524 Change-Id: I0233f13e3d2a9110b35375a7394e6c8c36494342