mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-22 18:16:28 +00:00
rtp: basepay: Don't use suggested SSRC on collissions if it's the current one
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1693>
This commit is contained in:
parent
9080c90120
commit
035a199109
1 changed files with 5 additions and 1 deletions
|
@ -1258,7 +1258,11 @@ impl RtpBasePay2 {
|
|||
return;
|
||||
}
|
||||
|
||||
let new_ssrc = if let Ok(suggested_ssrc) = s.get::<u32>("suggested-ssrc") {
|
||||
let new_ssrc = if let Some(suggested_ssrc) = s
|
||||
.get::<u32>("suggested-ssrc")
|
||||
.ok()
|
||||
.filter(|suggested_ssrc| *suggested_ssrc != stats.ssrc)
|
||||
{
|
||||
suggested_ssrc
|
||||
} else {
|
||||
use rand::prelude::*;
|
||||
|
|
Loading…
Reference in a new issue