[gst-devel] Re: [gst-cvs] wingo gstreamer: gstreamer/ gstreamer/gst/ gstreamer/testsuite/ gstreamer/testsuite/ghostpads/

Tim Müller t.i.m at zen.co.uk
Sun Feb 8 04:32:37 CET 2004


On Saturday 07 February 2004 15:27, Ronald Bultje wrote:

> > Why don't we want boxed btw?
>
> It copies the struct.

If the struct has a refcounter, nothing keeps you from creating a boxed type 
where copy_func = struct_ref() and free_func = struct_unref(), right? So you 
could get away without a copy/deep copy of the struct, couldn't you? 
(Similarly, one could just set up a copy_func that doesn't do a copy, and a 
free_func that does nothing, although that would probably be rather evil if 
the type was to be public).

Cheers
-Tim





More information about the gstreamer-devel mailing list