Getting a instance type error

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Dec 17 11:19:55 PST 2012


On Mon, 2012-12-17 at 11:08 -0800, iron_guitarist1987 wrote:

Hi,

> My header is :
> typedef struct _GstMYPLUGIN GstMYPLUGIN;
> typedef struct _GstMYPLUGINClass GstMYPLUGINClass;
> 
> struct _GstMyPlugin {
>   GstElement    element;
> ...
>   myStruct	data;
>   myStruct  next_data;
> ...
> };
> struct _GstMYPLUGINClass {
>   GstElementClass parent_class;
> };
> 
> My plugin:
>
> GST_BOILERPLATE (GstMYPLUGIN, gst_myplugin, GstElement, GST_TYPE_ELEMENT);
> 
This looks all fine to me. How large are the myStruct structures?
GObject instances are limited to 64kB, so if those contain huge arrays,
that won't work.

You could add a 

  g_print ("sizeof(GstMYPLUGIN) = %d\n", (int) sizeof (GstMYPLUGIN));

at the very beginning of myplugin_init.

Cheers
 -Tim



More information about the gstreamer-devel mailing list