public override TSStream Clone() { var stream = new TSGraphicsStream(); CopyTo(stream); return(stream); }
/// <summary> /// Adds the subtitle stream. /// </summary> /// <param name="streams">The streams.</param> /// <param name="textStream">The text stream.</param> private void AddSubtitleStream(List <MediaStream> streams, TSGraphicsStream textStream) { streams.Add(new MediaStream { Language = textStream.LanguageCode, Codec = textStream.CodecShortName, Type = MediaStreamType.Subtitle, Index = streams.Count }); }