shrink Presentation by a word
This commit is contained in:
parent
a5e198b0cf
commit
2cc35d1733
@ -636,7 +636,7 @@ impl PlayOptions {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Presentation {
|
pub(crate) struct Presentation {
|
||||||
pub streams: Vec<Stream>,
|
pub streams: Box<[Stream]>,
|
||||||
base_url: Url,
|
base_url: Url,
|
||||||
pub control: Url,
|
pub control: Url,
|
||||||
tool: Option<Tool>,
|
tool: Option<Tool>,
|
||||||
@ -1842,7 +1842,7 @@ impl Session<Playing> {
|
|||||||
.conn
|
.conn
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.ok_or_else(|| wrap!(ErrorInt::FailedPrecondition("no connection".into())))?;
|
.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 matches!(s.state, StreamState::Playing { .. }) {
|
||||||
if let Err(ref description) = s.depacketizer {
|
if let Err(ref description) = s.depacketizer {
|
||||||
bail!(ErrorInt::RtspResponseError {
|
bail!(ErrorInt::RtspResponseError {
|
||||||
|
@ -464,7 +464,7 @@ pub(crate) fn parse_describe(
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.collect::<Result<Vec<Stream>, String>>()?;
|
.collect::<Result<_, String>>()?;
|
||||||
|
|
||||||
Ok(Presentation {
|
Ok(Presentation {
|
||||||
streams,
|
streams,
|
||||||
|
Loading…
Reference in New Issue
Block a user