summaryrefslogtreecommitdiffstats
path: root/gst/speed
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 /gst/speed
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 'gst/speed')
-rw-r--r--gst/speed/demo-mp3.c10
-rw-r--r--gst/speed/gstspeed.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/gst/speed/demo-mp3.c b/gst/speed/demo-mp3.c
index 586ac9f1..31f15da9 100644
--- a/gst/speed/demo-mp3.c
+++ b/gst/speed/demo-mp3.c
@@ -36,11 +36,11 @@ int main(int argc, char **argv)
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_main_quit, NULL);
gtk_widget_show(button);
- filesrc = gst_elementfactory_make("filesrc", "filesrc");
- mad = gst_elementfactory_make("mad", "mad");
- stereo2mono = gst_elementfactory_make("stereo2mono", "stereo2mono");
- speed = gst_elementfactory_make("speed", "speed");
- osssink = gst_elementfactory_make("osssink", "osssink");
+ filesrc = gst_element_factory_make("filesrc", "filesrc");
+ mad = gst_element_factory_make("mad", "mad");
+ stereo2mono = gst_element_factory_make("stereo2mono", "stereo2mono");
+ speed = gst_element_factory_make("speed", "speed");
+ osssink = gst_element_factory_make("osssink", "osssink");
gtk_object_set(GTK_OBJECT(osssink), "fragment", 0x00180008, NULL);
gtk_signal_connect(GTK_OBJECT(gtk_range_get_adjustment(GTK_RANGE(hscale))),
diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c
index f97dcf3c..fc737e92 100644
--- a/gst/speed/gstspeed.c
+++ b/gst/speed/gstspeed.c
@@ -58,7 +58,7 @@ speed_sink_factory (void)
static GstPadTemplate *template = NULL;
if (!template) {
- template = gst_padtemplate_new
+ template = gst_pad_template_new
("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
gst_caps_append(gst_caps_new ("sink_int", "audio/raw",
GST_AUDIO_INT_MONO_PAD_TEMPLATE_PROPS),
@@ -75,7 +75,7 @@ speed_src_factory (void)
static GstPadTemplate *template = NULL;
if (!template)
- template = gst_padtemplate_new
+ template = gst_pad_template_new
("src", GST_PAD_SRC, GST_PAD_ALWAYS,
gst_caps_append (gst_caps_new ("src_float", "audio/raw",
GST_AUDIO_FLOAT_MONO_PAD_TEMPLATE_PROPS),
@@ -326,12 +326,12 @@ plugin_init (GModule *module, GstPlugin *plugin)
{
GstElementFactory *factory;
- factory = gst_elementfactory_new("speed",GST_TYPE_SPEED,
+ factory = gst_element_factory_new("speed",GST_TYPE_SPEED,
&speed_details);
g_return_val_if_fail(factory != NULL, FALSE);
- gst_elementfactory_add_padtemplate (factory, speed_src_factory ());
- gst_elementfactory_add_padtemplate (factory, speed_sink_factory ());
+ gst_element_factory_add_pad_template (factory, speed_src_factory ());
+ gst_element_factory_add_pad_template (factory, speed_sink_factory ());
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));