]> git.tuebingen.mpg.de Git - paraslash.git/commit
write_common: Don't abort if btr_exec_up() failed.
authorAndre Noll <maan@systemlinux.org>
Sun, 28 Nov 2010 21:32:13 +0000 (22:32 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 28 Nov 2010 21:32:13 +0000 (22:32 +0100)
commit071538830bc5200f90b22576945687a2e43694a0
treec621b87a6214e6c90b5a738547732f97a3af1a4a
parent795bf04f176cf48aa8636e3b904e8bc262df89f7
write_common: Don't abort if btr_exec_up() failed.

btr_exec_up() failure is unusual but possible if the upper btr node dies just in
the right moment.  It happened for an aac file due to another bug in the fecdec
filter (fixed in a subsequent patch)  which caused the fecdec and hence the aacdec
btr nodes to unregister themselves due to a full buffer tree pool.

So replace the assertion by a fat error message. This sets the sample rate,
channel count and the sample format to zero which makes the writer unregister
itsself. This is better than aborting.
write_common.c