/// <summary> /// Adds a stream to this manifest /// </summary> /// <param name="streamIndexInfo">the stream to add</param> public void AddStream(StreamInfo streamIndexInfo) { // Let's go through and fixup some of the info in the // stream and make sure that it is all valid streamIndexInfo.CalculateStartTimes(); // Now add it to our list of streams m_streams.Add(streamIndexInfo); // We can only have 1 audio and 1 video stream active, so let's keep track // of which ones are active if we have more than one if (m_activeStreams[(int)streamIndexInfo.MediaType] == null) { m_activeStreams[(int)streamIndexInfo.MediaType] = streamIndexInfo; } // Add our media stream descriptor m_streamDescriptions.Add(streamIndexInfo.Description); }