private void ProcessComposition (AVMutableComposition composition)
		{
			var tracks = new List<List<APLCompositionTrackSegmentInfo>> ();
			foreach (AVCompositionTrack track in composition.Tracks) {
				var segmentInfos = new List<APLCompositionTrackSegmentInfo> ();
				foreach (AVCompositionTrackSegment segment in track.Segments) {
					var segmentInfo = new APLCompositionTrackSegmentInfo (segment, track.MediaType);
					segmentInfos.Add (segmentInfo);
				}

				tracks.Add (segmentInfos);
			}

			compositionTracks = tracks;
			duration = CMTime.GetMaximum (duration, composition.Duration);
		}
        private void ProcessComposition(AVMutableComposition composition)
        {
            var tracks = new List <List <APLCompositionTrackSegmentInfo> > ();

            foreach (AVCompositionTrack track in composition.Tracks)
            {
                var segmentInfos = new List <APLCompositionTrackSegmentInfo> ();
                foreach (AVCompositionTrackSegment segment in track.Segments)
                {
                    var segmentInfo = new APLCompositionTrackSegmentInfo(segment, track.MediaType);
                    segmentInfos.Add(segmentInfo);
                }

                tracks.Add(segmentInfos);
            }

            compositionTracks = tracks;
            duration          = CMTime.GetMaximum(duration, composition.Duration);
        }