commit | 0332fadec6e91c37fe39ab92b2c02922370bc853 | [log] [tgz] |
---|---|---|
author | Hangyu Kuang <hkuang@google.com> | Mon Feb 22 16:50:42 2016 -0800 |
committer | Hangyu Kuang <hkuang@google.com> | Tue Feb 23 13:30:40 2016 -0800 |
tree | 50ee226002b1fd1a36d8a6862b2d42df69e76ba5 | |
parent | b30f2636bc36d56b94dc5d35e20a68b2e403aac2 [diff] |
stagefright: MPEG4Writer stops the source before exiting the thread. While pushBuffer is waiting for a condition that need to be signaled by the writer thread, it is possible that the writer thread has already exited due to error that happend during processing previous buffer. In this case, the muxer thread will hang over this function. So the writer thread needs to stop the source from feeding more buffer to it. Bug: 26928205 Change-Id: Ifd35c29176fb817ed0f718f8f60a03bef6dea7ce