• wm4's avatar
    mmaldec: fix problems with flush logic · 6b652c02
    wm4 authored
    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.
    Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
    6b652c02
mmaldec.c 24.9 KB