From fe9384f4406f4c07ffa3f4c0f903270d85d442f4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 3 Jun 2001 11:28:09 +0000 Subject: [PATCH] Set the caps on a proxied pad when the pad is not connected. Original commit message from CVS: Set the caps on a proxied pad when the pad is not connected. --- gst/gstpad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gstpad.c b/gst/gstpad.c index 7e40ab957d..eb7d921265 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1375,6 +1375,11 @@ gst_pad_negotiate_proxy (GstPad *srcpad, GstPad *destpad, GstCaps **caps) return GST_PAD_NEGOTIATE_FAIL; } } + else { + GST_PAD_CAPS (destpad) = *caps; + if (GST_RPAD_NEWCAPSFUNC (destpad)) + GST_RPAD_NEWCAPSFUNC (destpad) (GST_PAD (destpad), *caps); + } return GST_PAD_NEGOTIATE_AGREE; }