Original commit message from CVS:
only call link functions to restore old link if the old link was negotiated
ret = gst_pad_link_negotiate (link);
if (ret == GST_PAD_LINK_REFUSED) {
- if (oldlink && !gst_pad_link_call_link_functions (oldlink))
+ if (oldlink && oldlink->caps && !gst_pad_link_call_link_functions (oldlink))
g_warning ("pads don't accept old caps. We assume they did though");
gst_pad_link_free (link);
return ret;