]> git.tuebingen.mpg.de Git - paraslash.git/commit
flacdec: Only process a single flac audio frame.
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Apr 2012 01:02:02 +0000 (03:02 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 3 Jun 2012 11:04:01 +0000 (13:04 +0200)
commitd6e0177297fc95e508be8c40cdecd3be7397cc03
tree31808e3d9addd0aff349d3b4b2e68acaecfed673
parent1e196821cc4fa9e1319557ce1100961be6795278
flacdec: Only process a single flac audio frame.

This removes the loop in flacdec_post_select() which makes the
flac decoder decode as much as possible, but may starve other
tasks. Removing the loop gives other tasks a chance to run, thereby
avoiding buffer underruns. It simplifies the code too.

Also, resetting the number of unconsumed input bytes to zero at
each scheduler iteration has always been a mistake, so remove it.
flacdec_filter.c