Esempio n. 1
0
 internal static List<TrackDescription> GetSubTrackDescription(TrackDescriptionStructure module)
 {
     var result = new List<TrackDescription>();
     result.Add(new TrackDescription(module.Id, module.Name));
     if (module.NextTrackDescription != IntPtr.Zero)
     {
         TrackDescriptionStructure nextModule = (TrackDescriptionStructure)Marshal.PtrToStructure(module.NextTrackDescription, typeof(TrackDescriptionStructure));
         var data = GetSubTrackDescription(nextModule);
         result.AddRange(data);
     }
     return result;
 }
 public void SetVideoSpu(VlcMediaPlayerInstance mediaPlayerInstance, TrackDescriptionStructure trackDescription)
 {
     if (mediaPlayerInstance == IntPtr.Zero)
         throw new ArgumentException("Media instance is not initialized.");
     SetVideoSpu(mediaPlayerInstance, trackDescription.Id);
 }
 public void ReleaseTrackDescription(TrackDescriptionStructure trackDescription)
 {
     GetInteropDelegate<ReleaseTrackDescription>().Invoke(trackDescription);
 }