shrink Presentation by a word

This commit is contained in:
Scott Lamb 2022-04-30 16:16:08 -07:00
parent a5e198b0cf
commit 2cc35d1733
2 changed files with 3 additions and 3 deletions

View File

@ -636,7 +636,7 @@ impl PlayOptions {
#[derive(Debug)]
pub(crate) struct Presentation {
pub streams: Vec<Stream>,
pub streams: Box<[Stream]>,
base_url: Url,
pub control: Url,
tool: Option<Tool>,
@ -1842,7 +1842,7 @@ impl Session<Playing> {
.conn
.as_ref()
.ok_or_else(|| wrap!(ErrorInt::FailedPrecondition("no connection".into())))?;
for s in &mut inner.presentation.streams {
for s in &mut *inner.presentation.streams {
if matches!(s.state, StreamState::Playing { .. }) {
if let Err(ref description) = s.depacketizer {
bail!(ErrorInt::RtspResponseError {

View File

@ -464,7 +464,7 @@ pub(crate) fn parse_describe(
)
})
})
.collect::<Result<Vec<Stream>, String>>()?;
.collect::<Result<_, String>>()?;
Ok(Presentation {
streams,