summaryrefslogtreecommitdiff
path: root/sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-01-28 16:50:57 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-09-29 16:47:12 +0000
commita542bc599c8b6cf15c15de5b0080a2085b3dcabd (patch)
tree0cf2b928f325305f88834769c435a881d18c9ce1 /sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs
parent2651dc3c4d715b1d99fdebc0ee7c72c141831d65 (diff)
Declare GstVideoOverlayComposition/Rectangle as opaque type and subclasses of Gst.MiniObject1.16
This changes the API. Without this change all usage will cause memory corruption and simply does not work. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/-/merge_requests/20>
Diffstat (limited to 'sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs')
-rw-r--r--sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs b/sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs
index a84948f..afe6558 100644
--- a/sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs
+++ b/sources/generated/Gst.Video/VideoOverlayCompositionMeta.cs
@@ -14,9 +14,13 @@ namespace Gst.Video {
public Gst.Meta Meta;
private IntPtr _overlay;
-
- public Gst.Video.VideoOverlayComposition overlay {
- get { return Gst.Video.VideoOverlayComposition.New (_overlay); }
+ public Gst.Video.VideoOverlayComposition Overlay {
+ get {
+ return _overlay == IntPtr.Zero ? null : (Gst.Video.VideoOverlayComposition) GLib.Opaque.GetOpaque (_overlay, typeof (Gst.Video.VideoOverlayComposition), false);
+ }
+ set {
+ _overlay = value == null ? IntPtr.Zero : value.Handle;
+ }
}
public static Gst.Video.VideoOverlayCompositionMeta Zero = new Gst.Video.VideoOverlayCompositionMeta ();
@@ -40,7 +44,7 @@ namespace Gst.Video {
public bool Equals (VideoOverlayCompositionMeta other)
{
- return true && Meta.Equals (other.Meta) && overlay.Equals (other.overlay);
+ return true && Meta.Equals (other.Meta) && Overlay.Equals (other.Overlay);
}
public override bool Equals (object other)
@@ -50,7 +54,7 @@ namespace Gst.Video {
public override int GetHashCode ()
{
- return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ overlay.GetHashCode ();
+ return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Overlay.GetHashCode ();
}
private static GLib.GType GType {