mmal/codec: flush: wait for input buffers