summaryrefslogtreecommitdiffstats
path: root/ext/audiofile
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-04-11 20:42:26 +0000
committerAndy Wingo <wingo@pobox.com>2002-04-11 20:42:26 +0000
commit06d94641c271dc846e335104ac61beab38445c4a (patch)
treecd066b7966e619ab2c31e6fdf43d584be29c0e90 /ext/audiofile
parent8c43b5fd9b38cf9c55e5c148c985cd1b8731b5b7 (diff)
downloadgst-plugins-bad-06d94641c271dc846e335104ac61beab38445c4a.tar.gz
gst-plugins-bad-06d94641c271dc846e335104ac61beab38445c4a.tar.bz2
gst-plugins-bad-06d94641c271dc846e335104ac61beab38445c4a.zip
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 'ext/audiofile')
-rw-r--r--ext/audiofile/gstafsink.c10
-rw-r--r--ext/audiofile/gstafsrc.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c
index 620082c9..bf570fbb 100644
--- a/ext/audiofile/gstafsink.c
+++ b/ext/audiofile/gstafsink.c
@@ -51,7 +51,7 @@ enum {
/* added a sink factory function to force audio/raw MIME type */
/* I think the caps can be broader, we need to change that somehow */
-GST_PADTEMPLATE_FACTORY (afsink_sink_factory,
+GST_PAD_TEMPLATE_FACTORY (afsink_sink_factory,
"sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
@@ -178,7 +178,7 @@ gst_afsink_init (GstAFSink *afsink)
/* GstPad *pad; this is now done in the struct */
afsink->sinkpad = gst_pad_new_from_template (
- GST_PADTEMPLATE_GET (afsink_sink_factory), "sink");
+ GST_PAD_TEMPLATE_GET (afsink_sink_factory), "sink");
gst_element_add_pad (GST_ELEMENT (afsink), afsink->sinkpad);
gst_pad_set_chain_function (afsink->sinkpad, gst_afsink_chain);
@@ -259,11 +259,11 @@ plugin_init (GModule *module, GstPlugin *plugin)
{
GstElementFactory *factory;
- factory = gst_elementfactory_new ("afsink", GST_TYPE_AFSINK,
+ factory = gst_element_factory_new ("afsink", GST_TYPE_AFSINK,
&afsink_details);
g_return_val_if_fail (factory != NULL, FALSE);
- gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET (afsink_sink_factory));
+ gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (afsink_sink_factory));
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
@@ -499,7 +499,7 @@ gst_afsink_factory_init (GstElementFactory *factory)
{
GstPadTemplate *sink_pt;
sink_pt = afsink_sink_factory();
- gst_elementfactory_add_padtemplate (factory, sink_pt);
+ gst_element_factory_add_pad_template (factory, sink_pt);
return TRUE;
diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c
index 5f9d4dbe..92483179 100644
--- a/ext/audiofile/gstafsrc.c
+++ b/ext/audiofile/gstafsrc.c
@@ -50,7 +50,7 @@ enum {
/* added a src factory function to force audio/raw MIME type */
/* I think the caps can be broader, we need to change that somehow */
-GST_PADTEMPLATE_FACTORY (afsrc_src_factory,
+GST_PAD_TEMPLATE_FACTORY (afsrc_src_factory,
"src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
@@ -276,11 +276,11 @@ plugin_init (GModule *module, GstPlugin *plugin)
{
GstElementFactory *factory;
- factory = gst_elementfactory_new ("afsrc", GST_TYPE_AFSRC,
+ factory = gst_element_factory_new ("afsrc", GST_TYPE_AFSRC,
&afsrc_details);
g_return_val_if_fail (factory != NULL, FALSE);
- gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET (afsrc_src_factory));
+ gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (afsrc_src_factory));
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));