...
vsrcpad = gst_element_get_src_pad(source, "src1");
- vsinkpad = gst_element_get_request_pad (encbin, "video_%d");
+ vsinkpad = gst_element_request_pad_simple (encbin, "video_%d");
gst_pad_link(vsrcpad, vsinkpad);
...
if ((GST_PAD_TEMPLATE_DIRECTION (templ) == direction) &&
(GST_PAD_TEMPLATE_PRESENCE (templ) == GST_PAD_REQUEST)) {
pad =
- gst_element_get_request_pad (element,
+ gst_element_request_pad_simple (element,
GST_PAD_TEMPLATE_NAME_TEMPLATE (templ));
if (pad)
break;
/* Request a sinkpad from playsink */
if (G_UNLIKELY (!(sinkpad =
- gst_element_get_request_pad (self->priv->playsink,
+ gst_element_request_pad_simple (self->priv->playsink,
sinkpad_name)))) {
GST_ELEMENT_ERROR (self, CORE, NEGOTIATION,
(NULL), ("Could not get a pad from playsink for %s", sinkpad_name));
goto error;
}
- tmppad = gst_element_get_request_pad (chain->tee, "src_%u");
+ tmppad = gst_element_request_pad_simple (chain->tee, "src_%u");
lret = gst_pad_link_full (tmppad, sinkpad, GST_PAD_LINK_CHECK_NOTHING);
if (G_UNLIKELY (lret != GST_PAD_LINK_OK)) {
gst_object_unref (tmppad);
GST_INFO_OBJECT (track, "Linked to %" GST_PTR_FORMAT, sinkpad);
}
- tmppad = gst_element_get_request_pad (chain->tee, "src_%u");
+ tmppad = gst_element_request_pad_simple (chain->tee, "src_%u");
if (G_UNLIKELY (gst_pad_link_full (tmppad, chain->encodebinpad,
GST_PAD_LINK_CHECK_NOTHING) != GST_PAD_LINK_OK)) {
GST_ERROR_OBJECT (self, "Couldn't link track pad to encodebin");
GstElement *compositor =
gst_element_factory_create (ges_get_compositor_factory (), NULL);
- GstPad *compositorPad = gst_element_get_request_pad (compositor, "sink_%u");
+ GstPad *compositorPad =
+ gst_element_request_pad_simple (compositor, "sink_%u");
GParamSpec *pspec =
g_object_class_find_property (G_OBJECT_GET_CLASS (compositorPad),
if ((GST_PAD_TEMPLATE_DIRECTION (templ) == GST_PAD_SINK) &&
(GST_PAD_TEMPLATE_PRESENCE (templ) == GST_PAD_REQUEST)) {
pad =
- gst_element_get_request_pad (operation->element,
+ gst_element_request_pad_simple (operation->element,
GST_PAD_TEMPLATE_NAME_TEMPLATE (templ));
if (pad)
break;