This commit is contained in:
Scott Lamb 2022-04-05 13:17:31 -07:00
parent 1ee6d95cc3
commit ba8b00b4fd
2 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,7 @@ fn parse_media(base_url: &Url, media_description: &Media) -> Result<Stream, Stri
.value
.as_ref()
.ok_or_else(|| "rtpmap attribute with no value".to_string())?
.trim_end_matches(" ");
.trim_end_matches(' ');
// https://tools.ietf.org/html/rfc8866#section-6.6
// rtpmap-value = payload-type SP encoding-name
// "/" clock-rate [ "/" encoding-params ]

View File

@ -72,6 +72,7 @@ pub(super) async fn background_teardown(
}
/// Attempts `TEARDOWN` in a loop until success; caller should bound by session expiry.
#[allow(clippy::too_many_arguments)]
pub(super) async fn teardown_loop_forever(
url: Url,
tool: Option<Tool>,