From 0837e1e495de3bc0d1972d3d6dc5faa8ae11dcc4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 24 Mar 2001 17:22:03 +0000 Subject: Modified a lot of plugins to use the caps system. Original commit message from CVS: Modified a lot of plugins to use the caps system. Modified the caps of audio/raw to our agreed properties. Added the multidisksrc plugin of Dominic Ludlam Renamed audiosink/src to osssink/src and updated all the examples using the old name. Moved oss specific plugins in an oss directory. removed the old audiosink from the elements/ dir. removed audioraw.h metadata header files since we now use the properties. There are still a few plugins that won't build because they include the old audioraw.h header file. This will be fixed soon. Make sure the caps are set in the plugins as described by their padtemplates (this should solve problems with gstmediaplay with various media files). *please don't panic when some plugins won't build, just cd manually into the plugin dirs* This will be fixed soon. --- examples/helloworld2/helloworld2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/helloworld2/helloworld2.c') diff --git a/examples/helloworld2/helloworld2.c b/examples/helloworld2/helloworld2.c index 8b70518ed..19e0b1e44 100644 --- a/examples/helloworld2/helloworld2.c +++ b/examples/helloworld2/helloworld2.c @@ -11,7 +11,7 @@ void eos(GstElement *element) int main(int argc,char *argv[]) { - GstElement *disksrc, *audiosink; + GstElement *disksrc, *osssink; GstElement *pipeline, *thread; gst_init(&argc,&argv); @@ -37,13 +37,13 @@ int main(int argc,char *argv[]) GTK_SIGNAL_FUNC(eos),NULL); /* and an audio sink */ - audiosink = gst_elementfactory_make("audiosink", "play_audio"); - g_assert(audiosink != NULL); + osssink = gst_elementfactory_make("osssink", "play_audio"); + g_assert(osssink != NULL); /* add objects to the main pipeline */ /* gst_pipeline_add_src(GST_PIPELINE(pipeline), disksrc); - gst_pipeline_add_sink(GST_PIPELINE(pipeline), audiosink); + gst_pipeline_add_sink(GST_PIPELINE(pipeline), osssink); if (!gst_pipeline_autoplug(GST_PIPELINE(pipeline))) { g_print("unable to handle stream\n"); -- cgit v1.2.3