public override TSStream Clone() { var stream = new TSTextStream(); 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, TSTextStream textStream) { streams.Add(new MediaStream { Language = textStream.LanguageCode, Codec = textStream.CodecShortName, Type = MediaStreamType.Subtitle, Index = streams.Count }); }