[Bug 788133] Fix problems with GstVideoInfo

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Sep 25 22:02:54 UTC 2017


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

--- Comment #1 from Thibault Saunier <tsaunier at gnome.org> ---
Created attachment 360391
  --> https://bugzilla.gnome.org/attachment.cgi?id=360391&action=edit
Make GstVideoInfo an opaque class structure

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