Drain fix: fix frame lost upon EOS in frame export mode