summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodecSource.cpp
Commit message (Collapse)AuthorAgeFilesLines
* MediaCodecSource: stop puller from caller's thread instead of looperChong Zhang2014-08-041-32/+42
| | | | | | | | | | | | | | | | | | | | Currently CameraSource/AudioSource's stop() and read() are both called from the puller's looper. This works if source operates normally (i.e. read() returns regularly before source is stopped), as the stop() will eventually be handled by the looper. However, if for some reason the source hang, it will get stuck in read(), and the stop() will never be processed, which could lead to ANR (in addition to the source hang). We need to move the source's stop out of the puller's looper. It also can't be on MediaCodecSource's looper, because the source's stop synchrounously waits for all outstanding buffers to return, these are only returned when MediaCodecSource's looper processes the buffer. This change moves the stop to MediaCodecSource::stop, after encoder is shutdown. Bug: 16522726 Change-Id: Ie91f563c5d8a98ab091bf1945af4e51f662b9403
* libstagefright: 64-bit compile warningsMark Salyzyn2014-06-261-2/+5
| | | | Change-Id: I3d1146714fa23be3d4e696599b6f70cac1f9d28b
* warnings be gone.Andreas Huber2014-02-111-2/+2
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* Change StagefrightRecorder to use MediaCodecChong Zhang2014-02-051-0/+881
Bug: 12305192 Change-Id: I72d7cb571be5bd348b58ad650f3269d24c15d350