[gst-devel] Capabilities API functions

zaheer at grid9.net zaheer at grid9.net
Wed Mar 14 02:54:22 CET 2001


On Tue, 13 Mar 2001, David I. Lehn wrote:

> * zaheer at grid9.net <zaheer at grid9.net> [20010313 20:24]:
> > Here is a start, just for manipulation and retrieval of mimetypes .
> ...
> > /**
> >  * Gets all the mime types a set of capabilities has
> >  * NB array returned must be freed...(however NOT its contents)
> >  *
> >  * @param caps the set of capabilities to get the mime types from
> >  * @param size a pointer to an integer which will be set denoting the
> > number of mime types in the array
> >  *
> >  * @returns an array of mime types the set of capabilities has
> >  */
> > guchar** gst_caps_get_mimetypes(GstCaps* caps, guint* size);
> > 
> 
> Wouldn't it be nicer to return a GList or GArray rather than hack
> parameters into return values?  What is this info stored as internally?
> (yeah, I'm too lazy to look ;)

I was thinking of that....it is stored as stated above in a list (GList) 
of properties of a certain node in the caps linked list where name is
mimetype.  However returning the Glist that its stored in may not be a
good idea....

Zaheer





More information about the gstreamer-devel mailing list