diff --git a/gst/gstpad.c b/gst/gstpad.c index 4acbfd687b..bfee301f8e 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1837,6 +1837,7 @@ gst_pad_link_unnegotiate (GstPadLink *link) { if (link->caps) { gst_caps_free (link->caps); + link->caps = NULL; if (GST_RPAD_LINK (link->srcpad) != link) { g_warning ("unnegotiating unset link"); } else {