This avoids finished output streams continuing to receive frames Signed-off-by: Michael Niedermayer <michaelni@gmx.at>