The required calling order to handle eos is very strict,
and it will hung with the wrong calling order.
Normal calling order should be:
a. send last frame, send null frame with eos flag
b. get recon frame, check if this is last recon.
c. get output buffer, and set pic_send_done if recon is done and
input is done.