diff options
Diffstat (limited to 'ext/lcs')
-rw-r--r-- | ext/lcs/gstcolorspace.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/lcs/gstcolorspace.c b/ext/lcs/gstcolorspace.c index 291d2c4b..cea5e6ac 100644 --- a/ext/lcs/gstcolorspace.c +++ b/ext/lcs/gstcolorspace.c @@ -82,7 +82,7 @@ enum { ARG_DEST, }; -GST_PADTEMPLATE_FACTORY (colorspace_src_template_factory, +GST_PAD_TEMPLATE_FACTORY (colorspace_src_template_factory, "src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -99,7 +99,7 @@ GST_PADTEMPLATE_FACTORY (colorspace_src_template_factory, ) ) -GST_PADTEMPLATE_FACTORY (colorspace_sink_template_factory, +GST_PAD_TEMPLATE_FACTORY (colorspace_sink_template_factory, "sink", GST_PAD_SINK, GST_PAD_ALWAYS, @@ -226,7 +226,7 @@ gst_colorspace_getcaps (GstPad *pad, GstCaps *caps) /* we can do everything our peer can... */ peercaps = gst_caps_copy (gst_pad_get_allowed_caps (space->srcpad)); /* and our own template of course */ - ourcaps = gst_caps_copy (gst_pad_get_padtemplate_caps (pad)); + ourcaps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); /* merge them together, we prefer the peercaps first */ result = gst_caps_prepend (ourcaps, peercaps); @@ -373,7 +373,7 @@ static void gst_colorspace_init (GstColorspace *space) { space->sinkpad = gst_pad_new_from_template ( - GST_PADTEMPLATE_GET (colorspace_sink_template_factory), "sink"); + GST_PAD_TEMPLATE_GET (colorspace_sink_template_factory), "sink"); gst_pad_set_connect_function (space->sinkpad, gst_colorspace_sinkconnect); gst_pad_set_getcaps_function (space->sinkpad, gst_colorspace_getcaps); gst_pad_set_bufferpool_function (space->sinkpad, colorspace_get_bufferpool); @@ -381,7 +381,7 @@ gst_colorspace_init (GstColorspace *space) gst_element_add_pad(GST_ELEMENT(space),space->sinkpad); space->srcpad = gst_pad_new_from_template ( - GST_PADTEMPLATE_GET (colorspace_src_template_factory), "src"); + GST_PAD_TEMPLATE_GET (colorspace_src_template_factory), "src"); gst_element_add_pad(GST_ELEMENT(space),space->srcpad); gst_pad_set_connect_function (space->srcpad, gst_colorspace_srcconnect); @@ -502,14 +502,14 @@ plugin_init (GModule *module, GstPlugin *plugin) lcs_init (NULL, NULL); - factory = gst_elementfactory_new ("colorspacelcs", GST_TYPE_COLORSPACE, + factory = gst_element_factory_new ("colorspacelcs", GST_TYPE_COLORSPACE, &colorspace_details); g_return_val_if_fail (factory != NULL, FALSE); - gst_elementfactory_add_padtemplate (factory, - GST_PADTEMPLATE_GET (colorspace_src_template_factory)); - gst_elementfactory_add_padtemplate (factory, - GST_PADTEMPLATE_GET (colorspace_sink_template_factory)); + gst_element_factory_add_pad_template (factory, + GST_PAD_TEMPLATE_GET (colorspace_src_template_factory)); + gst_element_factory_add_pad_template (factory, + GST_PAD_TEMPLATE_GET (colorspace_sink_template_factory)); gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); |