OSDN Git Service

fix crash when ffmpeg video port notify setting change event.
authorMichael Chen <omxcodec@gmail.com>
Fri, 1 Nov 2013 11:51:11 +0000 (19:51 +0800)
committerMichael Chen <omxcodec@gmail.com>
Fri, 1 Nov 2013 17:42:25 +0000 (01:42 +0800)
commitbf71712153a98d1ff1c2650ba7790ee2693ad4b7
tree3e959108bc3eea10f3d9471df80f54c7d9708a4e
parentb3e0d3303e7c65586c402611531f057019b39e91
fix crash when ffmpeg video port notify setting change event.
We don't notify event until "outQueue.size() == kNumOutputBuffers"

test sample- http://samples.mplayerhq.hu/V-codecs/WVC1/rtvc1.vc1

crash log:
I/SoftFFmpegVideo( 4196): ffmpeg video port setting change event(352x144)->(352x288).
F/OMXCodec( 4196): frameworks/av/media/libstagefright/OMXCodec.cpp:3285 CHECK(info->mStatus == OWNED_BY_US || info->mStatus == OWNED_BY_NATIVE_WINDOW) failed.
F/libc    ( 4196): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 4241 (OMXCallbackDisp)
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.cpp
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.h