[gst-devel] use of g_alloca

Stefan Kost ensonic at hora-obscura.de
Sun Sep 11 07:25:30 CEST 2005

hi all,

what is the problem with using g_alloca() [1][2]? The advantages are clear. In 
processing function the use of g_alloca for temporary data blocks is better as 
it is really fast and cannot leak.
I there  know plattform where it does not work? If so why aren't we use the cpp 
to use g_malloc then? e.g.

#define gst_alloca(size) g_alloca(size)
#define gst_freea(mem)
#define gst_alloca(size) g_malloc(size)
#define gst_freea(mem) g_free(mem)



More information about the gstreamer-devel mailing list