diff options
author | Andy Wingo <wingo@pobox.com> | 2002-04-11 20:42:26 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2002-04-11 20:42:26 +0000 |
commit | 06d94641c271dc846e335104ac61beab38445c4a (patch) | |
tree | cd066b7966e619ab2c31e6fdf43d584be29c0e90 /gst/mpegaudioparse | |
parent | 8c43b5fd9b38cf9c55e5c148c985cd1b8731b5b7 (diff) | |
download | gst-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/mpegaudioparse')
-rw-r--r-- | gst/mpegaudioparse/gstmp3types.c | 10 | ||||
-rw-r--r-- | gst/mpegaudioparse/gstmpegaudioparse.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/gst/mpegaudioparse/gstmp3types.c b/gst/mpegaudioparse/gstmp3types.c index 670cfba7..5d9823e4 100644 --- a/gst/mpegaudioparse/gstmp3types.c +++ b/gst/mpegaudioparse/gstmp3types.c @@ -21,15 +21,15 @@ #include <gst/gst.h> #include <string.h> /* memcmp */ -static GstCaps* mp3_typefind(GstBuffer *buf, gpointer private); +static GstCaps* mp3_type_find(GstBuffer *buf, gpointer private); static GstTypeDefinition mp3type_definitions[] = { - { "mp3types_audio/mp3", "audio/mp3", ".mp3 .mp2 .mp1 .mpga", mp3_typefind }, + { "mp3types_audio/mp3", "audio/mp3", ".mp3 .mp2 .mp1 .mpga", mp3_type_find }, { NULL, NULL, NULL, NULL }, }; static GstCaps* -mp3_typefind(GstBuffer *buf, gpointer private) +mp3_type_find(GstBuffer *buf, gpointer private) { gchar *data; gulong head; @@ -74,7 +74,7 @@ mp3_typefind(GstBuffer *buf, gpointer private) if (((head >> 10) & 0x3) == 0x3) return NULL; - caps = gst_caps_new ("mp3_typefind", "audio/mp3", NULL); + caps = gst_caps_new ("mp3_type_find", "audio/mp3", NULL); /* gst_caps_set(caps,"layer",GST_PROPS_INT(4-((head>>17)&0x3))); */ return caps; @@ -88,7 +88,7 @@ plugin_init (GModule *module, GstPlugin *plugin) while (mp3type_definitions[i].name) { GstTypeFactory *type; - type = gst_typefactory_new (&mp3type_definitions[i]); + type = gst_type_factory_new (&mp3type_definitions[i]); gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type)); i++; } diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index 23e632ac..151aec0c 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -35,7 +35,7 @@ static GstPadTemplate* mp3_src_factory (void) { return - gst_padtemplate_new ( + gst_pad_template_new ( "src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -56,7 +56,7 @@ static GstPadTemplate* mp3_sink_factory (void) { return - gst_padtemplate_new ( + gst_pad_template_new ( "sink", GST_PAD_SINK, GST_PAD_ALWAYS, @@ -480,16 +480,16 @@ plugin_init (GModule *module, GstPlugin *plugin) GstElementFactory *factory; /* create an elementfactory for the mp3parse element */ - factory = gst_elementfactory_new ("mp3parse", + factory = gst_element_factory_new ("mp3parse", GST_TYPE_MP3PARSE, &mp3parse_details); g_return_val_if_fail (factory != NULL, FALSE); sink_temp = mp3_sink_factory (); - gst_elementfactory_add_padtemplate (factory, sink_temp); + gst_element_factory_add_pad_template (factory, sink_temp); src_temp = mp3_src_factory (); - gst_elementfactory_add_padtemplate (factory, src_temp); + gst_element_factory_add_pad_template (factory, src_temp); gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); |