Replace yield_codec() with a call to queue_wait_w_tmo()