[Gstreamer-openmax] [PATCH 2/2] add gst-openmax registry (config file)

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Feb 26 04:36:49 PST 2010


On Fri, 2010-02-26 at 14:05 +0200, Felipe Contreras wrote:

> > +#ifndef DIM  /* XXX is there a better alternative available? */
> > +#  define DIM(x) (sizeof(x)/sizeof((x)[0]))
> > +#endif
> 
> Let's call it ARRAY_SIZE (just like in the kernel). Maybe there's
> something in GLib for that (can't recall though), but I like
> ARRAY_SIZE :)

GLib macro is G_N_ELEMENTS, fwiw.

Cheers
 -Tim






More information about the Gstreamer-openmax mailing list