]> git.sesse.net Git - ffmpeg/commit
mmaldec: fix problems with flush logic
authorwm4 <nfxjfg@googlemail.com>
Tue, 11 Aug 2015 10:11:04 +0000 (12:11 +0200)
committerwm4 <nfxjfg@googlemail.com>
Tue, 11 Aug 2015 10:14:15 +0000 (12:14 +0200)
commit67db57ea12bf5a9cb7409a7649b476027cab23a1
tree819342a8e5d950301f46000ec706f72d4025564d
parent7f116973d59bbadce891320e338f5786ce31c65a
mmaldec: fix problems with flush logic

Don't try to do a blocking wait for MMAL output if we haven't even sent
a single real packet, but only flush packets. Obviously we can't expect
to get anything back.

Additionally, don't send a flush packet to MMAL in the same case. It
appears the MMAL decoder will sometimes hang in mmal_vc_port_disable()
(called from ffmmal_close_decoder()), waiting for a reply from the GPU
which never arrives. Either MMAL disallows sending flush packets without
preceding real data, or it's a MMAL bug.
libavcodec/mmaldec.c