summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2021-04-21 10:47:51 +0200
committerSebastian Dröge <slomo@coaxion.net>2021-05-05 06:16:53 +0000
commitec5b267249af8bbe33de1af51863b0285a9831f3 (patch)
tree0652ea676e005629cf9e62ab8f8aa413d069c19b
parent6cd13c3b0956c4b8994b18533085f3efa08dfe48 (diff)
Use gst_element_request_pad_simple...
Instead of the deprecated gst_element_get_request_pad. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/240>
-rw-r--r--docs/design/encoding.txt2
-rw-r--r--ges/ges-effect-asset.c2
-rw-r--r--ges/ges-pipeline.c6
-rw-r--r--ges/ges-smart-video-mixer.c2
-rw-r--r--ges/gstframepositioner.c3
-rw-r--r--plugins/nle/nleoperation.c2
6 files changed, 9 insertions, 8 deletions
diff --git a/docs/design/encoding.txt b/docs/design/encoding.txt
index f4c1d1da..1bce7ac6 100644
--- a/docs/design/encoding.txt
+++ b/docs/design/encoding.txt
@@ -87,7 +87,7 @@ B. Goals
...
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);
...
diff --git a/ges/ges-effect-asset.c b/ges/ges-effect-asset.c
index eb85b38c..fa90a661 100644
--- a/ges/ges-effect-asset.c
+++ b/ges/ges-effect-asset.c
@@ -177,7 +177,7 @@ request_pad (GstElement * element, GstPadDirection direction)
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;
diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c
index c57cc376..4988aec0 100644
--- a/ges/ges-pipeline.c
+++ b/ges/ges-pipeline.c
@@ -849,14 +849,14 @@ _link_track (GESPipeline * self, GESTrack * track)
/* 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);
@@ -912,7 +912,7 @@ _link_track (GESPipeline * self, GESTrack * track)
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");
diff --git a/ges/ges-smart-video-mixer.c b/ges/ges-smart-video-mixer.c
index 20228205..877e4e54 100644
--- a/ges/ges-smart-video-mixer.c
+++ b/ges/ges-smart-video-mixer.c
@@ -190,7 +190,7 @@ ges_smart_mixer_get_mixer_pad (GESSmartMixer * self, GstPad ** mixerpad)
PadInfos *info;
GstPad *sinkpad;
- sinkpad = gst_element_get_request_pad (GST_ELEMENT (self), "sink_%u");
+ sinkpad = gst_element_request_pad_simple (GST_ELEMENT (self), "sink_%u");
if (sinkpad == NULL)
return NULL;
diff --git a/ges/gstframepositioner.c b/ges/gstframepositioner.c
index 23a61e1e..368b4c49 100644
--- a/ges/gstframepositioner.c
+++ b/ges/gstframepositioner.c
@@ -87,7 +87,8 @@ gst_compositor_operator_get_type_and_default_value (int *default_operator_value)
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),
diff --git a/plugins/nle/nleoperation.c b/plugins/nle/nleoperation.c
index 34d60ffc..b39fdd7e 100644
--- a/plugins/nle/nleoperation.c
+++ b/plugins/nle/nleoperation.c
@@ -639,7 +639,7 @@ get_request_sink_pad (NleOperation * operation)
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;