While chasing down a problem with transcode behaving different when
run from bash vs python, I discovered that the return value of
'fwrite' is not consistently checked.  Some extracters (mp3) check it,
others (ac3) don't.  This caused a problem where one process
(tcdecode) exitted, leaving tcextract, tcdemux, and tccat still
running, since tcextract would not exit.

I would like to clean up all the calls to fwrite in the
extracters/decoders.  I was thinking of just writing 'import_write'
which would attempt the write, and call import_exit if it failed.
This is what extract_mp3 does, but there are other modules which
provide more verbose error messages.  What is the prefered way of
handling this?

I'm happy to submit the patch but I'd like to make sure it works the
way you guys want it to.
--
       Scott

Reply via email to