webrtcsrc: don't restrict RTP extensions to TWCC only

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1381>
This commit is contained in:
Maksym Khomenko 2023-11-06 14:31:25 +02:00 committed by GStreamer Marge Bot
parent c616423edb
commit 773ebc7854

View file

@ -30,9 +30,6 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
) )
}); });
const RTP_TWCC_URI: &str =
"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01";
struct Settings { struct Settings {
stun_server: Option<String>, stun_server: Option<String>,
turn_servers: gst::Array, turn_servers: gst::Array,
@ -807,12 +804,8 @@ impl BaseWebRTCSrc {
filtered_s.extend(s.iter().filter_map(|(key, value)| { filtered_s.extend(s.iter().filter_map(|(key, value)| {
if key.starts_with("extmap-") { if key.starts_with("extmap-") {
if let Ok(s) = value.get::<String>() {
if s == RTP_TWCC_URI {
return Some((key, value.to_owned())); return Some((key, value.to_owned()));
} }
}
}
None None
})); }));