From a8a68d0c0cf26bc053339570bd7092ec667dc9a6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 27 Dec 2003 15:49:15 +0000 Subject: [PATCH] only call link functions to restore old link if the old link was negotiated Original commit message from CVS: only call link functions to restore old link if the old link was negotiated --- gst/gstpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index bfee301f8e..d197d8035e 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1205,7 +1205,7 @@ gst_pad_link_try (GstPadLink *link) 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;