mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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
This commit is contained in:
parent
f98a10e5d0
commit
a8a68d0c0c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue