summaryrefslogtreecommitdiff
path: root/examples/helloworld2/helloworld2.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2001-03-24 17:22:03 +0000
committerWim Taymans <wim.taymans@gmail.com>2001-03-24 17:22:03 +0000
commit0837e1e495de3bc0d1972d3d6dc5faa8ae11dcc4 (patch)
tree6ac099490b3e957056111c08992084d1dd146d0a /examples/helloworld2/helloworld2.c
parentd611faa5bcd10eacbb44e9976d135e01428d1bf5 (diff)
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.
Diffstat (limited to 'examples/helloworld2/helloworld2.c')
-rw-r--r--examples/helloworld2/helloworld2.c8
1 files changed, 4 insertions, 4 deletions
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");