[Bug 795964] New: Event.CopySegment not copy Segment

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 9 09:18:13 UTC 2018


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

            Bug ID: 795964
           Summary: Event.CopySegment not copy Segment
    Classification: Platform
           Product: GStreamer
           Version: 1.14.0
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-sharp
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: morohe at outlook.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

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.

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