Example #1
0
 internal VlcTrackDescription(TrackDescription trackDescription)
 {
     Name = IntPtrExtensions.ToStringAnsi(trackDescription.name);
     Id   = trackDescription.id;
     if (trackDescription.next != IntPtr.Zero)
     {
         var next = (TrackDescription)Marshal.PtrToStructure(trackDescription.next, typeof(TrackDescription));
         Next = new VlcTrackDescription(next);
     }
 }
        internal VlcTrackDescription(TrackDescription trackDescription)
        {
            Name = IntPtrExtensions.ToStringAnsi(trackDescription.name);
            Id   = trackDescription.id;
            if (trackDescription.next != IntPtr.Zero)
            {
#if SILVERLIGHT
                var next = new TrackDescription();
                Marshal.PtrToStructure(trackDescription.next, next);
#else
                var next = (TrackDescription)Marshal.PtrToStructure(trackDescription.next, typeof(TrackDescription));
#endif
                Next = new VlcTrackDescription(next);
            }
        }
        internal VlcTrackDescription(TrackDescription trackDescription)
        {
            Name = IntPtrExtensions.ToStringAnsi(trackDescription.name);
            Id = trackDescription.id;
            if (trackDescription.next != IntPtr.Zero)
            {
#if SILVERLIGHT
                var next = new TrackDescription();
                Marshal.PtrToStructure(trackDescription.next, next);
#else
                var next = (TrackDescription)Marshal.PtrToStructure(trackDescription.next, typeof(TrackDescription));
#endif
                Next = new VlcTrackDescription(next);
            }

        }