[FFmpeg-devel] [RFC] add av_fifo_reset

Michael Niedermayer michaelni
Sun Mar 8 18:50:02 CET 2009


On Sun, Mar 08, 2009 at 06:20:15PM +0100, Reimar D?ffinger wrote:
> Hello,
> As said previously, av_fifo_drain(f, av_fifo_size(f)) is a bit
> complicated when you just want to reuse the buffer and thread-safety is
> not an issue at that place.
> Attached patch would add a av_fifo_reset specifically for that purpose.

no strong oppinion on this
if you think its worth the extra function apply it

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090308/1ce51a53/attachment.pgp>



More information about the ffmpeg-devel mailing list