diff options
Diffstat (limited to 'gst/playondemand')
-rw-r--r-- | gst/playondemand/demo-mp3.c | 8 | ||||
-rw-r--r-- | gst/playondemand/gstplayondemand.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/gst/playondemand/demo-mp3.c b/gst/playondemand/demo-mp3.c index af5df0a4..e218011f 100644 --- a/gst/playondemand/demo-mp3.c +++ b/gst/playondemand/demo-mp3.c @@ -26,10 +26,10 @@ int main(int argc, char **argv) exit(-1); } - src = gst_elementfactory_make("filesrc", "filesrc"); - mad = gst_elementfactory_make("mad", "mad"); - pod = gst_elementfactory_make("playondemand", "playondemand"); - osssink = gst_elementfactory_make("osssink", "osssink"); + src = gst_element_factory_make("filesrc", "filesrc"); + mad = gst_element_factory_make("mad", "mad"); + pod = gst_element_factory_make("playondemand", "playondemand"); + osssink = gst_element_factory_make("osssink", "osssink"); g_object_set(G_OBJECT(src), "location", argv[1], NULL); g_object_set(G_OBJECT(osssink), "fragment", 0x00180008, NULL); diff --git a/gst/playondemand/gstplayondemand.c b/gst/playondemand/gstplayondemand.c index ab236c46..300f9664 100644 --- a/gst/playondemand/gstplayondemand.c +++ b/gst/playondemand/gstplayondemand.c @@ -65,7 +65,7 @@ play_on_demand_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_PAD_TEMPLATE_PROPS), @@ -82,7 +82,7 @@ play_on_demand_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), @@ -408,13 +408,13 @@ plugin_init (GModule *module, GstPlugin *plugin) { GstElementFactory *factory; - factory = gst_elementfactory_new("playondemand", + factory = gst_element_factory_new("playondemand", GST_TYPE_PLAYONDEMAND, &play_on_demand_details); g_return_val_if_fail(factory != NULL, FALSE); - gst_elementfactory_add_padtemplate(factory, play_on_demand_src_factory()); - gst_elementfactory_add_padtemplate(factory, play_on_demand_sink_factory()); + gst_element_factory_add_pad_template(factory, play_on_demand_src_factory()); + gst_element_factory_add_pad_template(factory, play_on_demand_sink_factory()); gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE(factory)); |