OSDN Git Service

stagefright-plugins: call packet_queue_init earier
authorKeith Mok <kmok@cyngn.com>
Mon, 20 Jun 2016 17:19:56 +0000 (10:19 -0700)
committerKeith Mok <kmok@cyngn.com>
Mon, 20 Jun 2016 17:19:56 +0000 (10:19 -0700)
commit4c4ad3fd3fe28b3cebcb22a9527d0b84c4fa3e06
treec6e646c1bedb87c8aa44fe4e95764bf970a11927
parent9db7a9ca88860d08c135997891a43af8a37a7d10
stagefright-plugins: call packet_queue_init earier

On FFmpegExtractor destructor it always call
packet_queue_destroy. However packet_queue_init
may not be called if there is an error inside
initStreams. Causing packet_queue_destroy trying
to free some random data in mVideoQ and mAudioQ and
leading to crash.

OPO-775

Change-Id: Idded5f886a680f135d6e004977c85135e40d02f1
extractor/FFmpegExtractor.cpp