• wm4's avatar
    mmaldec: fix problems with flush logic · 67db57ea
    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.
    67db57ea
mmaldec.c 24.9 KB