Basically, we poll() on the mplayer process to find out if it's alive or dead and restart... this might need more work, if we don't want this to be the default behavior, for example... also I need to test it more, but I thought I'd submit a pull request just to get early feedback. Let me know if this isn't the right way to work.
Please see my line notes, but other than that, nice work. If you comment on my line notes and point out I'm stupid I will pull these in right away. Otherwise we have to fix my concerns.
Basically, we poll() on the mplayer process to find out if it's alive or dead and restart... this might need more work, if we don't want this to be the default behavior, for example... also I need to test it more, but I thought I'd submit a pull request just to get early feedback. Let me know if this isn't the right way to work.