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.
This commit is contained in:
Wim Taymans 2001-06-03 11:28:09 +00:00
parent 8bb71e68a9
commit fe9384f440

View file

@ -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;
}