diff options
Diffstat (limited to 'ext/dv')
-rw-r--r-- | ext/dv/demo-play.c | 12 | ||||
-rw-r--r-- | ext/dv/gstdvdec.c | 20 |
2 files changed, 16 insertions, 16 deletions
diff --git a/ext/dv/demo-play.c b/ext/dv/demo-play.c index 45f7f7fe..3dfc687d 100644 --- a/ext/dv/demo-play.c +++ b/ext/dv/demo-play.c @@ -33,16 +33,16 @@ main (int argc,char *argv[]) bin = gst_pipeline_new("pipeline"); if (argc == 1) { - src = gst_elementfactory_make ("dv1394src", "src"); + src = gst_element_factory_make ("dv1394src", "src"); } else { - src = gst_elementfactory_make ("filesrc", "src"); + src = gst_element_factory_make ("filesrc", "src"); gtk_object_set(GTK_OBJECT(src),"location",argv[1],"bytesperread",480,NULL); } - dvdec = gst_elementfactory_make ("dvdec", "decoder"); + dvdec = gst_element_factory_make ("dvdec", "decoder"); if (!dvdec) fprintf(stderr,"no dvdec\n"),exit(1); -/* cspace = gst_elementfactory_make ("colorspace", "cspace"); */ - deint = gst_elementfactory_make ("deinterlace", "deinterlace"); - videosink = gst_elementfactory_make ("xvideosink", "videosink"); +/* cspace = gst_element_factory_make ("colorspace", "cspace"); */ + deint = gst_element_factory_make ("deinterlace", "deinterlace"); + videosink = gst_element_factory_make ("xvideosink", "videosink"); if (!videosink) fprintf(stderr,"no dvdec\n"),exit(1); gtk_object_set(GTK_OBJECT(videosink),"width",720,"height",576,NULL); diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index bf52497e..e0d6282b 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -65,7 +65,7 @@ enum { * can have. They can be quite complex, but for this dvdec plugin * they are rather simple. */ -GST_PADTEMPLATE_FACTORY (sink_temp, +GST_PAD_TEMPLATE_FACTORY (sink_temp, "sink", GST_PAD_SINK, GST_PAD_ALWAYS, @@ -77,7 +77,7 @@ GST_PADTEMPLATE_FACTORY (sink_temp, ) -GST_PADTEMPLATE_FACTORY (video_src_temp, +GST_PAD_TEMPLATE_FACTORY (video_src_temp, "video", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -102,7 +102,7 @@ GST_PADTEMPLATE_FACTORY (video_src_temp, ) ) -GST_PADTEMPLATE_FACTORY ( audio_src_temp, +GST_PAD_TEMPLATE_FACTORY ( audio_src_temp, "audio", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -208,13 +208,13 @@ gst_dvdec_class_init (GstDVDecClass *klass) static void gst_dvdec_init(GstDVDec *dvdec) { - dvdec->sinkpad = gst_pad_new_from_template (GST_PADTEMPLATE_GET (sink_temp), "sink"); + dvdec->sinkpad = gst_pad_new_from_template (GST_PAD_TEMPLATE_GET (sink_temp), "sink"); gst_element_add_pad (GST_ELEMENT (dvdec), dvdec->sinkpad); - dvdec->videosrcpad = gst_pad_new_from_template (GST_PADTEMPLATE_GET (video_src_temp), "video"); + dvdec->videosrcpad = gst_pad_new_from_template (GST_PAD_TEMPLATE_GET (video_src_temp), "video"); gst_element_add_pad (GST_ELEMENT (dvdec), dvdec->videosrcpad); - dvdec->audiosrcpad = gst_pad_new_from_template (GST_PADTEMPLATE_GET(audio_src_temp), "audio"); + dvdec->audiosrcpad = gst_pad_new_from_template (GST_PAD_TEMPLATE_GET(audio_src_temp), "audio"); gst_element_add_pad(GST_ELEMENT(dvdec),dvdec->audiosrcpad); gst_element_set_loop_function (GST_ELEMENT (dvdec), gst_dvdec_loop); @@ -463,7 +463,7 @@ plugin_init (GModule *module, GstPlugin *plugin) * This consists of the name of the element, the GType identifier, * and a pointer to the details structure at the top of the file. */ - factory = gst_elementfactory_new("dvdec", GST_TYPE_DVDEC, &dvdec_details); + factory = gst_element_factory_new("dvdec", GST_TYPE_DVDEC, &dvdec_details); g_return_val_if_fail(factory != NULL, FALSE); /* The pad templates can be easily generated from the factories above, @@ -471,9 +471,9 @@ plugin_init (GModule *module, GstPlugin *plugin) * Note that the generated padtemplates are stored in static global * variables, for the gst_dvdec_init function to use later on. */ - gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET(sink_temp)); - gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET(video_src_temp)); - gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET(audio_src_temp)); + gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET(sink_temp)); + gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET(video_src_temp)); + gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET(audio_src_temp)); /* The very last thing is to register the elementfactory with the plugin. */ gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); |