Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer-sharp gstreamer-sharp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gstreamer-sharpgstreamer-sharp
  • Issues
  • #4
Closed
Open
Issue created May 09, 2018 by Bugzilla Migration User@bugzilla-migration

Event.CopySegment not copy Segment

Submitted by morohe

Link to original bug (#795964)

Description

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.

Version: 1.14.0

Assignee
Assign to
Time tracking