The PCM queue cap was applied before the first output sample. For any
input longer than about two seconds the gate could trigger while
samples_out was still zero, emit() had nothing to return, and process_pcm
returned without marking filter progress. The decoder thread then stopped
and audio never became ready; short clips and E-AC-3 JOC were unaffected.
Only apply the cap after the first output sample, and mark progress when
the gate cannot emit. This keeps the EOF flush bounded without blocking
startup.