schaermu/node-fluent-ffmpeg — pull request #178 by njoyard (2013-11-29 08:43:47+00:00)
Title: Fix writeToStream writing to stream after closing it

writeToStream closes the output stream when the ffmpeg process terminates, but 'data' events on the process stdout stream can still happen after that.

This patch fixes this problem by closing the stream on the stdout 'end' event.