[FFmpeg-devel] [PATCH] lavfi: unify asink_buffer and vsink_buffer API

Michael Niedermayer michaelni at gmx.at
Tue Aug 30 22:20:11 CEST 2011


On Mon, Aug 29, 2011 at 05:10:29PM +0200, Stefano Sabatini wrote:
> On date Saturday 2011-08-27 18:40:44 +0200, Michael Niedermayer encoded:
> > On Sat, Aug 27, 2011 at 04:36:44PM +0200, Stefano Sabatini wrote:
> > > On date Saturday 2011-08-27 01:19:36 +0200, Michael Niedermayer encoded:
> [...]
> > > +/**
> > > + * Get an audio/video buffer data from buffer_sink and put it in bufref.
> > > + *
> > > + * This function works with both audio and video buffer sinks.
> > > + *
> > > + * @param buffer_sink pointer to a buffersink or abuffersink context
> > 
> > maybe the function could free the parameters too ?
> > would simplify the calling code if its possible
> 
> Updated and simplified.
> 
> I'd like to avoid to implement a destructive behavior by default.
> 
> Maybe we could specify an additional parameter params->set_me_free so
> that the struct is automatically freed when init is called on it, not
> that it looks a very good idea at first sight, and you have an hanging
> pointer even in that case (unless you pass a **params).

whichever way you prefer, and the patch should be ok


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

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110830/56e1728b/attachment.asc>


More information about the ffmpeg-devel mailing list