shrink Presentation by a word
This commit is contained in:
parent
a5e198b0cf
commit
2cc35d1733
@ -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 {
|
||||
|
@ -464,7 +464,7 @@ pub(crate) fn parse_describe(
|
||||
)
|
||||
})
|
||||
})
|
||||
.collect::<Result<Vec<Stream>, String>>()?;
|
||||
.collect::<Result<_, String>>()?;
|
||||
|
||||
Ok(Presentation {
|
||||
streams,
|
||||
|
Loading…
Reference in New Issue
Block a user