[Bug 789986] pad templates: Allow specifying GType

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Nov 22 12:08:57 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=789986

--- Comment #13 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Comment on attachment 363082
  --> https://bugzilla.gnome.org/attachment.cgi?id=363082
pad templates: Allow specifying GType

>@@ -127,7 +137,12 @@ struct _GstPadTemplate {
>   GstCaps	  *caps;
> 
>   /*< private >*/
>-  gpointer _gst_reserved[GST_PADDING];
>+  union {
>+    gpointer _gst_reserved[GST_PADDING];
>+    struct {
>+      GType type;
>+    } abi;
>+  } ABI;
> };

For what it's worth, I think we can rely on GType always being pointer-sized,
so the ABI union struct compat dance is probably not necessary here, but
doesn't hurt either of course.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list