Hi Richard, > As well as separating the two files in the unlink statement at 5988 you > could try inserting a delay between them as Ralph suggested.
No, I didn't. :-) I did suggest adding a delay *before* attempting to unlink to allow all the bits of ffmpeg hanging around after the main thread has exited to themselves exit. If that's done, and the problem doesn't reoccur after enough attempts compared to its previous frequency, then that would suggest I'm right about the cause. Best of all would be to collect `$!' when one of the unlinks returns false as I suspect that will be a specific `file is open' error. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy _______________________________________________ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer