summaryrefslogtreecommitdiff
path: root/ext/webrtc/gstwebrtcbin.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-05-06 17:50:38 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2021-05-13 15:05:00 -0400
commit3065ac49fb80c85de49171a2c60b07002a2ce0cd (patch)
tree750fe9b919fa2d777b915f69d21d561010909182 /ext/webrtc/gstwebrtcbin.c
parent4bb94c69701ea18371d572510219c9bbd2f187c4 (diff)
downloadgstreamer-plugins-bad-3065ac49fb80c85de49171a2c60b07002a2ce0cd.tar.gz
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>
Diffstat (limited to 'ext/webrtc/gstwebrtcbin.c')
-rw-r--r--ext/webrtc/gstwebrtcbin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c
index c08d83748..fe1ce2273 100644
--- a/ext/webrtc/gstwebrtcbin.c
+++ b/ext/webrtc/gstwebrtcbin.c
@@ -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, "