void CDVDDemuxClient::RequestStreams() { std::map<int, std::shared_ptr<CDemuxStream>> newStreamMap; for (auto stream : m_IDemux->GetStreams()) SetStreamProps(stream, newStreamMap, false); m_streams = newStreamMap; }
void CDVDDemuxClient::OpenStream(int id) { // OpenStream may change some parameters // in this case we need to reset our stream properties if (m_IDemux && m_IDemux->OpenStream(id)) { SetStreamProps(m_IDemux->GetStream(id), m_streams, true); } }
void CDVDDemuxClient::OpenStream(int id) { // OpenStream may change some parameters // in this case we need to reset our stream properties if (m_IDemux) { bool bOpenStream = m_IDemux->OpenStream(id); CDemuxStream *stream(m_IDemux->GetStream(id)); if (stream && stream->type == STREAM_VIDEO) m_videoStreamPlaying = id; if (bOpenStream) SetStreamProps(stream, m_streams, true); } }