diff options
Diffstat (limited to 'gst/spectrum')
-rw-r--r-- | gst/spectrum/demo-osssrc.c | 8 | ||||
-rw-r--r-- | gst/spectrum/gstspectrum.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gst/spectrum/demo-osssrc.c b/gst/spectrum/demo-osssrc.c index e3f6552c..397b559b 100644 --- a/gst/spectrum/demo-osssrc.c +++ b/gst/spectrum/demo-osssrc.c @@ -25,12 +25,12 @@ int main(int argc,char *argv[]) { bin = gst_bin_new("bin"); - srcfactory = gst_elementfactory_find("osssrc"); - spectrumfactory = gst_elementfactory_find("gstspectrum"); + srcfactory = gst_element_factory_find("osssrc"); + spectrumfactory = gst_element_factory_find("gstspectrum"); - src = gst_elementfactory_create(srcfactory,"src"); + src = gst_element_factory_create(srcfactory,"src"); gtk_object_set(GTK_OBJECT(src),"bytes_per_read",(gulong)1024,NULL); - spectrum = gst_elementfactory_create(spectrumfactory,"spectrum"); + spectrum = gst_element_factory_create(spectrumfactory,"spectrum"); gtk_object_set(GTK_OBJECT(spectrum),"width",256,NULL); diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c index f8461a5c..8c84ee55 100644 --- a/gst/spectrum/gstspectrum.c +++ b/gst/spectrum/gstspectrum.c @@ -192,7 +192,7 @@ plugin_init (GModule *module, GstPlugin *plugin) GstElementFactory *factory; /* create an elementfactory for the spectrum element */ - factory = gst_elementfactory_new ("spectrum",GST_TYPE_SPECTRUM, + factory = gst_element_factory_new ("spectrum",GST_TYPE_SPECTRUM, &gst_spectrum_details); g_return_val_if_fail (factory != NULL, FALSE); |