summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/autoplug/autoplug.c8
-rw-r--r--examples/helloworld/helloworld.c10
-rw-r--r--examples/helloworld2/helloworld2.c8
-rwxr-xr-xexamples/launch/mp3play2
-rw-r--r--examples/queue/queue.c10
-rw-r--r--examples/queue2/queue2.c10
-rw-r--r--examples/queue3/queue3.c10
-rw-r--r--examples/queue4/queue4.c10
-rw-r--r--examples/thread/thread.c8
-rw-r--r--examples/xml/createxml.c10
10 files changed, 43 insertions, 43 deletions
diff --git a/examples/autoplug/autoplug.c b/examples/autoplug/autoplug.c
index dbd47c6af..a408c9d05 100644
--- a/examples/autoplug/autoplug.c
+++ b/examples/autoplug/autoplug.c
@@ -53,7 +53,7 @@ gst_play_typefind (GstBin *bin, GstElement *element)
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink, *videosink;
+ GstElement *disksrc, *osssink, *videosink;
GstElement *bin;
GtkWidget *appwindow;
GstCaps *srccaps;
@@ -88,8 +88,8 @@ int main(int argc,char *argv[])
}
/* 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);
/* and an video sink */
videosink = gst_elementfactory_make("videosink", "play_video");
@@ -102,7 +102,7 @@ int main(int argc,char *argv[])
new_element = gst_autoplug_to_renderers (autoplug,
srccaps,
videosink,
- audiosink,
+ osssink,
NULL);
if (!new_element) {
diff --git a/examples/helloworld/helloworld.c b/examples/helloworld/helloworld.c
index 3d7c7d872..566a2fb20 100644
--- a/examples/helloworld/helloworld.c
+++ b/examples/helloworld/helloworld.c
@@ -13,7 +13,7 @@ void eos(GstElement *element)
int main(int argc,char *argv[])
{
- GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
+ GstElement *bin, *disksrc, *parse, *decoder, *osssink;
gst_init(&argc,&argv);
@@ -35,13 +35,13 @@ int main(int argc,char *argv[])
parse = gst_elementfactory_make("mp3parse","parse");
decoder = gst_elementfactory_make("mpg123","decoder");
/* and an audio sink */
- audiosink = gst_elementfactory_make("audiosink", "play_audio");
+ osssink = gst_elementfactory_make("osssink", "play_audio");
/* add objects to the main pipeline */
gst_bin_add(GST_BIN(bin), disksrc);
gst_bin_add(GST_BIN(bin), parse);
gst_bin_add(GST_BIN(bin), decoder);
- gst_bin_add(GST_BIN(bin), audiosink);
+ gst_bin_add(GST_BIN(bin), osssink);
/* connect src to sink */
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
@@ -49,7 +49,7 @@ int main(int argc,char *argv[])
gst_pad_connect(gst_element_get_pad(parse,"src"),
gst_element_get_pad(decoder,"sink"));
gst_pad_connect(gst_element_get_pad(decoder,"src"),
- gst_element_get_pad(audiosink,"sink"));
+ gst_element_get_pad(osssink,"sink"));
/* start playing */
gst_element_set_state(bin, GST_STATE_PLAYING);
@@ -63,7 +63,7 @@ int main(int argc,char *argv[])
/* stop the bin */
gst_element_set_state(bin, GST_STATE_NULL);
- gst_object_destroy(GST_OBJECT(audiosink));
+ gst_object_destroy(GST_OBJECT(osssink));
gst_object_destroy(GST_OBJECT(parse));
gst_object_destroy(GST_OBJECT(decoder));
gst_object_destroy(GST_OBJECT(disksrc));
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");
diff --git a/examples/launch/mp3play b/examples/launch/mp3play
index 0208e1326..b09ccd304 100755
--- a/examples/launch/mp3play
+++ b/examples/launch/mp3play
@@ -1,4 +1,4 @@
#! /bin/sh
for loc in "$@"; do
-../../tools/gstreamer-launch disksrc \""location=$loc"\" ! mp3parse ! mpg123 ! audiosink
+../../tools/gstreamer-launch disksrc \""location=$loc"\" ! mp3parse ! mpg123 ! osssink
done
diff --git a/examples/queue/queue.c b/examples/queue/queue.c
index e2caf58e3..0d34a4bf9 100644
--- a/examples/queue/queue.c
+++ b/examples/queue/queue.c
@@ -3,7 +3,7 @@
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink, *parse, *decode, *queue;
+ GstElement *disksrc, *osssink, *parse, *decode, *queue;
GstElement *bin;
GstElement *thread;
@@ -33,8 +33,8 @@ int main(int argc,char *argv[])
queue = gst_elementfactory_make("queue", "queue");
/* 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);
gst_bin_use_cothreads (GST_BIN (bin), TRUE);
@@ -44,7 +44,7 @@ int main(int argc,char *argv[])
gst_bin_add(GST_BIN(bin), decode);
gst_bin_add(GST_BIN(bin), queue);
- gst_bin_add(GST_BIN(thread), audiosink);
+ gst_bin_add(GST_BIN(thread), osssink);
gst_bin_add(GST_BIN(bin), thread);
@@ -55,7 +55,7 @@ int main(int argc,char *argv[])
gst_pad_connect(gst_element_get_pad(decode,"src"),
gst_element_get_pad(queue,"sink"));
gst_pad_connect(gst_element_get_pad(queue,"src"),
- gst_element_get_pad(audiosink,"sink"));
+ gst_element_get_pad(osssink,"sink"));
/* start playing */
gst_element_set_state(GST_ELEMENT(bin), GST_STATE_PLAYING);
diff --git a/examples/queue2/queue2.c b/examples/queue2/queue2.c
index 706acc073..837732e4c 100644
--- a/examples/queue2/queue2.c
+++ b/examples/queue2/queue2.c
@@ -13,7 +13,7 @@ void eos(GstElement *element, gpointer data)
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink, *queue;
+ GstElement *disksrc, *osssink, *queue;
GstElement *pipeline;
GstElement *thread;
@@ -42,18 +42,18 @@ int main(int argc,char *argv[])
queue = gst_elementfactory_make("queue", "queue");
/* 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), queue);
- gst_bin_add(GST_BIN(thread), audiosink);
+ gst_bin_add(GST_BIN(thread), osssink);
gst_pad_connect(gst_element_get_pad(queue,"src"),
- gst_element_get_pad(audiosink,"sink"));
+ gst_element_get_pad(osssink,"sink"));
if (!gst_pipeline_autoplug(GST_PIPELINE(pipeline))) {
g_print("cannot autoplug pipeline\n");
diff --git a/examples/queue3/queue3.c b/examples/queue3/queue3.c
index 237b967db..152cd1e30 100644
--- a/examples/queue3/queue3.c
+++ b/examples/queue3/queue3.c
@@ -13,7 +13,7 @@ void eos(GstElement *element, gpointer data)
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink, *queue, *parse, *decode;
+ GstElement *disksrc, *osssink, *queue, *parse, *decode;
GstElement *bin;
GstElement *thread;
@@ -42,8 +42,8 @@ int main(int argc,char *argv[])
queue = gst_elementfactory_make("queue", "queue");
/* 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);
parse = gst_elementfactory_make("mp3parse", "parse");
decode = gst_elementfactory_make("mpg123", "decode");
@@ -54,7 +54,7 @@ int main(int argc,char *argv[])
gst_bin_add(GST_BIN(thread), parse);
gst_bin_add(GST_BIN(thread), decode);
- gst_bin_add(GST_BIN(thread), audiosink);
+ gst_bin_add(GST_BIN(thread), osssink);
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
gst_element_get_pad(queue,"sink"));
@@ -64,7 +64,7 @@ int main(int argc,char *argv[])
gst_pad_connect(gst_element_get_pad(parse,"src"),
gst_element_get_pad(decode,"sink"));
gst_pad_connect(gst_element_get_pad(decode,"src"),
- gst_element_get_pad(audiosink,"sink"));
+ gst_element_get_pad(osssink,"sink"));
gst_bin_add(GST_BIN(bin), thread);
diff --git a/examples/queue4/queue4.c b/examples/queue4/queue4.c
index a7e9d6d10..cb984cc7b 100644
--- a/examples/queue4/queue4.c
+++ b/examples/queue4/queue4.c
@@ -13,7 +13,7 @@ void eos(GstElement *element, gpointer data)
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink, *queue, *queue2, *parse, *decode;
+ GstElement *disksrc, *osssink, *queue, *queue2, *parse, *decode;
GstElement *bin;
GstElement *thread, *thread2;
@@ -45,8 +45,8 @@ int main(int argc,char *argv[])
queue2 = gst_elementfactory_make("queue", "queue2");
/* 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);
parse = gst_elementfactory_make("mp3parse", "parse");
decode = gst_elementfactory_make("mpg123", "decode");
@@ -59,7 +59,7 @@ int main(int argc,char *argv[])
gst_bin_add(GST_BIN(thread), decode);
gst_bin_add(GST_BIN(thread), queue2);
- gst_bin_add(GST_BIN(thread2), audiosink);
+ gst_bin_add(GST_BIN(thread2), osssink);
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
gst_element_get_pad(queue,"sink"));
@@ -72,7 +72,7 @@ int main(int argc,char *argv[])
gst_element_get_pad(queue2,"sink"));
gst_pad_connect(gst_element_get_pad(queue2,"src"),
- gst_element_get_pad(audiosink,"sink"));
+ gst_element_get_pad(osssink,"sink"));
gst_bin_add(GST_BIN(bin), thread);
gst_bin_add(GST_BIN(bin), thread2);
diff --git a/examples/thread/thread.c b/examples/thread/thread.c
index b8bc00e1d..5c691a0fa 100644
--- a/examples/thread/thread.c
+++ b/examples/thread/thread.c
@@ -14,7 +14,7 @@ void eos(GstElement *element, gpointer data)
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink;
+ GstElement *disksrc, *osssink;
GstElement *pipeline;
GstElement *thread;
@@ -41,13 +41,13 @@ int main(int argc,char *argv[])
GTK_SIGNAL_FUNC(eos), thread);
/* 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");
diff --git a/examples/xml/createxml.c b/examples/xml/createxml.c
index 154f943b9..ce8b39549 100644
--- a/examples/xml/createxml.c
+++ b/examples/xml/createxml.c
@@ -15,7 +15,7 @@ object_saved (GstObject *object, xmlNodePtr parent, gpointer data)
int main(int argc,char *argv[])
{
- GstElement *disksrc, *audiosink, *queue, *queue2, *parse, *decode;
+ GstElement *disksrc, *osssink, *queue, *queue2, *parse, *decode;
GstElement *bin;
GstElement *thread, *thread2;
@@ -52,8 +52,8 @@ int main(int argc,char *argv[])
queue2 = gst_elementfactory_make("queue", "queue2");
/* 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);
parse = gst_elementfactory_make("mp3parse", "parse");
decode = gst_elementfactory_make("mpg123", "decode");
@@ -66,7 +66,7 @@ int main(int argc,char *argv[])
gst_bin_add(GST_BIN(thread), decode);
gst_bin_add(GST_BIN(thread), queue2);
- gst_bin_add(GST_BIN(thread2), audiosink);
+ gst_bin_add(GST_BIN(thread2), osssink);
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
gst_element_get_pad(queue,"sink"));
@@ -79,7 +79,7 @@ int main(int argc,char *argv[])
gst_element_get_pad(queue2,"sink"));
gst_pad_connect(gst_element_get_pad(queue2,"src"),
- gst_element_get_pad(audiosink,"sink"));
+ gst_element_get_pad(osssink,"sink"));
gst_bin_add(GST_BIN(bin), thread);
gst_bin_add(GST_BIN(bin), thread2);