After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795964 - Event.CopySegment not copy Segment
Event.CopySegment not copy Segment
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-sharp
1.14.0
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-09 09:18 UTC by morohe
Modified: 2018-11-03 11:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description morohe 2018-05-09 09:18:13 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.
Comment 1 GStreamer system administrator 2018-11-03 11:09:05 UTC
-- 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.