summaryrefslogtreecommitdiffstats
path: root/gst/law/alaw.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-04-11 20:42:25 +0000
committerAndy Wingo <wingo@pobox.com>2002-04-11 20:42:25 +0000
commit3a9c675a6819ecd54c84d1810b7abe055fde3864 (patch)
tree8a98875ab1b8a5e21eb0df5e707d14fce8687eb6 /gst/law/alaw.c
parent18c6c04fdcc76ee66884a65c4bc7f6ce48d4398e (diff)
GstPadTemplate <-> gst_pad_template <-> GST_PAD_TEMPLATE same with *factory and typefind.
Original commit message from CVS: GstPadTemplate <-> gst_pad_template <-> GST_PAD_TEMPLATE same with *factory and typefind. also, some -Werror fixes.
Diffstat (limited to 'gst/law/alaw.c')
-rw-r--r--gst/law/alaw.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gst/law/alaw.c b/gst/law/alaw.c
index 1b9afb5c..e7eaec9f 100644
--- a/gst/law/alaw.c
+++ b/gst/law/alaw.c
@@ -60,26 +60,26 @@ plugin_init (GModule *module, GstPlugin *plugin)
GstElementFactory *alawenc_factory, *alawdec_factory;
GstCaps* alaw_caps, *linear_caps;
- alawenc_factory = gst_elementfactory_new("alawencode",GST_TYPE_ALAWENC,
+ alawenc_factory = gst_element_factory_new("alawencode",GST_TYPE_ALAWENC,
&alawenc_details);
g_return_val_if_fail(alawenc_factory != NULL, FALSE);
- alawdec_factory = gst_elementfactory_new("alawdecode",GST_TYPE_ALAWDEC,
+ alawdec_factory = gst_element_factory_new("alawdecode",GST_TYPE_ALAWDEC,
&alawdec_details);
g_return_val_if_fail(alawdec_factory != NULL, FALSE);
alaw_caps = alaw_factory ();
linear_caps = linear_factory ();
- alawenc_src_template = gst_padtemplate_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,alaw_caps, NULL);
- alawenc_sink_template = gst_padtemplate_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,linear_caps, NULL);
- gst_elementfactory_add_padtemplate (alawenc_factory, alawenc_src_template);
- gst_elementfactory_add_padtemplate (alawenc_factory, alawenc_sink_template);
+ alawenc_src_template = gst_pad_template_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,alaw_caps, NULL);
+ alawenc_sink_template = gst_pad_template_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,linear_caps, NULL);
+ gst_element_factory_add_pad_template (alawenc_factory, alawenc_src_template);
+ gst_element_factory_add_pad_template (alawenc_factory, alawenc_sink_template);
- alawdec_src_template = gst_padtemplate_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,linear_caps, NULL);
- alawdec_sink_template = gst_padtemplate_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,alaw_caps, NULL);
+ alawdec_src_template = gst_pad_template_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,linear_caps, NULL);
+ alawdec_sink_template = gst_pad_template_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,alaw_caps, NULL);
- gst_elementfactory_add_padtemplate (alawdec_factory, alawdec_src_template);
- gst_elementfactory_add_padtemplate (alawdec_factory, alawdec_sink_template);
+ gst_element_factory_add_pad_template (alawdec_factory, alawdec_src_template);
+ gst_element_factory_add_pad_template (alawdec_factory, alawdec_sink_template);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (alawenc_factory));
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (alawdec_factory));