OSDN Git Service

stagefright-plugins: Refactor packet queue locking
authorSteve Kondik <steve@cyngn.com>
Wed, 30 Dec 2015 23:20:26 +0000 (15:20 -0800)
committerSteve Kondik <steve@cyngn.com>
Wed, 30 Dec 2015 23:22:38 +0000 (15:22 -0800)
commite13ea55991d22e547b57a420daf4c5c9c71c80e9
treedf4c628d4b6ced001943b13e55dccdb060cf973c
parent30ab9dce710e7ecff5ccd3e6231f09f100a69eb6
stagefright-plugins: Refactor packet queue locking

 * Use Mutex/Condition like a sane Android developer
 * Introduce a timeout in the blocking get call to avoid deadlocks
 * This ensure that error cases get handled gracefully and that
   android.media.cts.MediaScannerNotificationTest passes too.

Change-Id: Icd106699dd65af07f7afbbdd02e927ff0122eace
utils/Android.mk
utils/ffmpeg_utils.cpp
utils/ffmpeg_utils.h