GNOME Bugzilla – Bug 795964
Event.CopySegment not copy Segment
Last modified: 2018-11-03 11:09:05 UTC
Current implementation write to unmanaged memory only. Not writeback to managed memory. I propose the following implementation. public Segment CopySegment() { Segment val = new Segment(); IntPtr native_segment = GLib.Marshaller.StructureToPtrAlloc(val); gst_event_copy_segment(Handle, native_segment); val = Marshal.PtrToStructure<Segment>(native_segment); Marshal.FreeHGlobal(native_segment); return val; } Thank you.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/issues/4.