opusenc: only request and process 1 frame at a time
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 7 Mar 2012 11:59:28 +0000 (12:59 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 7 Mar 2012 12:03:14 +0000 (13:03 +0100)
commit228d8808fe6f8aa7390b73d2b248b3a8f092eb9e
treed68d9f8e498c8338ae2b1be97149f8f58f0f3055
parentdb0aa7f0567435b14011750c02b0dcfd12cceb65
opusenc: only request and process 1 frame at a time

... since it is specified in _finish_frame that input buffer may be invalidated
after calling it, and is as such not reliably available for further encoding.

Also, requesting or allowing several frames is only useful if subclass intends
to process these "in 1 run" (as in, 1 output buffer), not for having another
(inner) loop in subclass where the baseclass one will do just fine.
ext/opus/gstopusenc.c