From 3f8ad30ceeb190473d745698f347404203e19b1d Mon Sep 17 00:00:00 2001 From: Ognyan Tonchev Date: Mon, 11 Mar 2013 14:50:41 +0100 Subject: [PATCH] rtph264pay: Don't use upstream caps with peer_query_caps () Calling gst_pad_peer_query_caps () on the src pad with the caps upstream can produce as a filter from gst_rtp_h264_pay_getcaps () is wrong and makes caps negotiation fail if upstream caps are not NULL. https://bugzilla.gnome.org/show_bug.cgi?id=695629 --- gst/rtp/gstrtph264pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index 4d347ee9b3..5af7f0d563 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -224,7 +224,7 @@ gst_rtp_h264_pay_getcaps (GstRTPBasePayload * payload, GstPad * pad, guint i; allowed_caps = - gst_pad_peer_query_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), filter); + gst_pad_peer_query_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), NULL); if (allowed_caps == NULL) return NULL;