[gst-devel] GstInterface

Ronald Bultje rbultje at ronald.bitfreak.net
Tue Oct 14 15:24:05 CEST 2003


On Tue, 2003-10-14 at 21:34, David Schleef wrote:
> And why go to all this trouble instead of putting a supported()
> method in the interfaces that require it?  Seems like a lot of
> extra code.

I've explained this in Barcelona: it's duplication of code. We need to
define the virtual function supported for each interface that requires
it. The function for each supported function is the same. So why not
generalize it? That's what this is for! Besides, I want to automate this
supported()-checking during the cast, and then a generic macro is
useful. The lot of extra code will end up in the specific interfaces
then.

I need this. I want this. You don't have to use it in your interfaces if
you don't want to. I do.

Ronald

-- 
Ronald Bultje <rbultje at ronald.bitfreak.net>
Linux Video/Multimedia developer





More information about the gstreamer-devel mailing list