mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
8bb71e68a9
commit
fe9384f440
1 changed files with 5 additions and 0 deletions
|
@ -1375,6 +1375,11 @@ gst_pad_negotiate_proxy (GstPad *srcpad, GstPad *destpad, GstCaps **caps)
|
||||||
return GST_PAD_NEGOTIATE_FAIL;
|
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;
|
return GST_PAD_NEGOTIATE_AGREE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue