[Bug 788133] Fix problems with GstVideoInfo

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Sep 26 13:36:24 UTC 2017


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

--- Comment #6 from Thibault Saunier <tsaunier at gnome.org> ---
Created attachment 360446
  --> https://bugzilla.gnome.org/attachment.cgi?id=360446&action=edit
Make GstVideo/AudioInfo GLib.Opaque structures

So that we generate a ABI compatible structure and make it working.
Also this is the way we do it for almost all other structures of this
kind.

I first tried to keep having a managed structure that properly matches
the C structure ABI generating in the gtk-sharp generator Explicit structure
for the union as we do with non managed structures but this is not
possible and leads to the following assertion in mono:

    Type Gst.Video.VideoInfo/__ABI which has an [ExplicitLayout] attribute
cannot have a reference field at the same offset as another field.

This sensibly changes the API but I bet noone will even notice.

-- 
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