mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
webrtcbin: Ignore current caps for codec negotiation
On the sink pad, we want the caps of the current stream, those are the "received_caps" field. If we haven't received caps yet, then we only care about the caps that the next element can accept, that is the caps from the peer pad (and the preferences). Otherwise, we prevent re-negotiation to a better codec when possible. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
This commit is contained in:
parent
4bb94c6970
commit
3065ac49fb
1 changed files with 0 additions and 2 deletions
|
@ -1650,8 +1650,6 @@ _find_codec_preferences (GstWebRTCBin * webrtc,
|
|||
|
||||
if (pad->received_caps) {
|
||||
caps = gst_caps_ref (pad->received_caps);
|
||||
} else if ((caps = gst_pad_get_current_caps (GST_PAD (pad)))) {
|
||||
GST_LOG_OBJECT (webrtc, "Using current pad caps: %" GST_PTR_FORMAT, caps);
|
||||
} else {
|
||||
static GstStaticCaps static_filter =
|
||||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
|
|
Loading…
Reference in a new issue