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)
commit74256b69af2afcd236900f0ed3acee6f1f6cd1a7
tree5fe56ba08dc4cb2df9a58aa2692ff32240b745f5
parent11f2207d1f1062b55809747c5d2cda70adcb1fe0
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