mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-23 08:06:18 +00:00
rtp: basepay: Don't negotiate twice in the beginning
If srcpad caps are already set as part of sinkpad caps handling, unset the reconfigure flag so negotiation does not happen yet another time on the first buffer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1705>
This commit is contained in:
parent
76f21f3b50
commit
489021ed55
1 changed files with 2 additions and 0 deletions
|
@ -230,11 +230,13 @@ impl RtpBasePay2 {
|
|||
let state = self.state.borrow_mut();
|
||||
let Some(ref src_caps) = state.src_caps else {
|
||||
gst::debug!(CAT, imp = self, "No src caps set yet, can't negotiate");
|
||||
self.src_pad.mark_reconfigure();
|
||||
return;
|
||||
};
|
||||
let mut src_caps = src_caps.clone();
|
||||
drop(state);
|
||||
|
||||
self.src_pad.check_reconfigure();
|
||||
gst::debug!(CAT, imp = self, "Configured src caps: {src_caps:?}");
|
||||
|
||||
let peer_caps = self.src_pad.peer_query_caps(Some(&src_caps));
|
||||
|
|
Loading…
Reference in a new issue