From: Erik Walthinsen Date: Mon, 1 Jan 2001 00:42:10 +0000 (+0000) Subject: cleaned up the examples, added Makefiles, etc X-Git-Tag: RELEASE-0_1_0-SLIPSTREAM~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53076863798264a0fc49e372ef6955574ab492bb;p=platform%2Fupstream%2Fgstreamer.git cleaned up the examples, added Makefiles, etc Original commit message from CVS: cleaned up the examples, added Makefiles, etc --- diff --git a/examples/helloworld/helloworld.c b/examples/helloworld/helloworld.c index 3527cc0..c23e354 100644 --- a/examples/helloworld/helloworld.c +++ b/examples/helloworld/helloworld.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src) +void eos(GstElement *element) { g_print("have eos, quitting\n"); diff --git a/examples/helloworld2/helloworld2.c b/examples/helloworld2/helloworld2.c index 376f700..51e4b77 100644 --- a/examples/helloworld2/helloworld2.c +++ b/examples/helloworld2/helloworld2.c @@ -1,7 +1,8 @@ +#include #include /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src) +void eos(GstElement *element) { g_print("have eos, quitting\n"); diff --git a/examples/queue/queue.c b/examples/queue/queue.c index 10272da..f220207 100644 --- a/examples/queue/queue.c +++ b/examples/queue/queue.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/examples/queue2/queue2.c b/examples/queue2/queue2.c index 6258e9c..175802d 100644 --- a/examples/queue2/queue2.c +++ b/examples/queue2/queue2.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/examples/queue3/queue3.c b/examples/queue3/queue3.c index fa79a78..e870978 100644 --- a/examples/queue3/queue3.c +++ b/examples/queue3/queue3.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/examples/queue4/queue4.c b/examples/queue4/queue4.c index a86b3ff..867bbe6 100644 --- a/examples/queue4/queue4.c +++ b/examples/queue4/queue4.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/examples/thread/thread.c b/examples/thread/thread.c index 4cd7721..2bb7582 100644 --- a/examples/thread/thread.c +++ b/examples/thread/thread.c @@ -1,7 +1,7 @@ #include /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { GstThread *thread = GST_THREAD(data); g_print("have eos, quitting\n"); diff --git a/examples/xml/Makefile b/examples/xml/Makefile index 1df7ca6..82d57b7 100644 --- a/examples/xml/Makefile +++ b/examples/xml/Makefile @@ -1,9 +1,14 @@ CC = libtool gcc -xml: xml.c - $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml +all: createxml runxml + +createxml: createxml.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` createxml.c -o createxml + +runxml: runxml.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` runxml.c -o runxml clean: - rm -f *.o xml + rm -f *.o createxml runxml diff --git a/examples/xml/createxml.c b/examples/xml/createxml.c index 9a32100..9af7d37 100644 --- a/examples/xml/createxml.c +++ b/examples/xml/createxml.c @@ -1,3 +1,4 @@ +#include #include gboolean playing; diff --git a/examples/xml/runxml.c b/examples/xml/runxml.c index 38b5219..57f4b47 100644 --- a/examples/xml/runxml.c +++ b/examples/xml/runxml.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/helloworld/helloworld.c b/tests/old/examples/helloworld/helloworld.c index 3527cc0..c23e354 100644 --- a/tests/old/examples/helloworld/helloworld.c +++ b/tests/old/examples/helloworld/helloworld.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src) +void eos(GstElement *element) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/helloworld2/helloworld2.c b/tests/old/examples/helloworld2/helloworld2.c index 376f700..51e4b77 100644 --- a/tests/old/examples/helloworld2/helloworld2.c +++ b/tests/old/examples/helloworld2/helloworld2.c @@ -1,7 +1,8 @@ +#include #include /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src) +void eos(GstElement *element) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/queue/queue.c b/tests/old/examples/queue/queue.c index 10272da..f220207 100644 --- a/tests/old/examples/queue/queue.c +++ b/tests/old/examples/queue/queue.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/queue2/queue2.c b/tests/old/examples/queue2/queue2.c index 6258e9c..175802d 100644 --- a/tests/old/examples/queue2/queue2.c +++ b/tests/old/examples/queue2/queue2.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/queue3/queue3.c b/tests/old/examples/queue3/queue3.c index fa79a78..e870978 100644 --- a/tests/old/examples/queue3/queue3.c +++ b/tests/old/examples/queue3/queue3.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/queue4/queue4.c b/tests/old/examples/queue4/queue4.c index a86b3ff..867bbe6 100644 --- a/tests/old/examples/queue4/queue4.c +++ b/tests/old/examples/queue4/queue4.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/thread/thread.c b/tests/old/examples/thread/thread.c index 4cd7721..2bb7582 100644 --- a/tests/old/examples/thread/thread.c +++ b/tests/old/examples/thread/thread.c @@ -1,7 +1,7 @@ #include /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { GstThread *thread = GST_THREAD(data); g_print("have eos, quitting\n"); diff --git a/tests/old/examples/xml/Makefile b/tests/old/examples/xml/Makefile index 1df7ca6..82d57b7 100644 --- a/tests/old/examples/xml/Makefile +++ b/tests/old/examples/xml/Makefile @@ -1,9 +1,14 @@ CC = libtool gcc -xml: xml.c - $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml +all: createxml runxml + +createxml: createxml.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` createxml.c -o createxml + +runxml: runxml.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` runxml.c -o runxml clean: - rm -f *.o xml + rm -f *.o createxml runxml diff --git a/tests/old/examples/xml/createxml.c b/tests/old/examples/xml/createxml.c index 9a32100..9af7d37 100644 --- a/tests/old/examples/xml/createxml.c +++ b/tests/old/examples/xml/createxml.c @@ -1,3 +1,4 @@ +#include #include gboolean playing; diff --git a/tests/old/examples/xml/runxml.c b/tests/old/examples/xml/runxml.c index 38b5219..57f4b47 100644 --- a/tests/old/examples/xml/runxml.c +++ b/tests/old/examples/xml/runxml.c @@ -1,9 +1,10 @@ +#include #include gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstSrc *src, gpointer data) +void eos(GstElement *element, gpointer data) { g_print("have eos, quitting\n");