mppdec not terminating on write error

Cerebus Aardvark <[email protected]> Mon, 1 Mar 2004 09:27:52 -0800 (PST)
Newsgroups gmane.comp.audio.mpc.devel
Message-ID <[email protected]>
I posted this to HA a while back, with no replies -
Case mentioned that he might be able to fix it for me,
but I'm not sure what the status of the fix is, so I
thought I'd bring it to the attention of this group.

I've implemented Musepack support for the
Squeezebox/Slimserver (tag parsing, etc) and, with the
exception of one issue, it's good to go.  The problem
is that when the Slimserver stops Musepack file
playback, it effectively closes the pipe that mppdec
is writing to.  Most decoders terminate decoding at
that point, but mppdec does not.  mppdec simply issues
a 'write error' and waits a handful of seconds before
attempting to continue the decode.  You have to
manually kill the mppdec process in order to get it to
die.

Is it possible that someone could compile a version of
the decoder that either (a) has, as default behavior,
termination of the decoder on write error, or (b) a
special flag that you can specify that would change
the behavior of the decoder to terminate on write
error instead of retrying the write indefinitely?

Many thanks,=20
Cerebus

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
http://mpc.corecodec.org