diff --git a/examples/helloworld/helloworld.c b/examples/helloworld/helloworld.c index 3527cc0b48..c23e3546bb 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 376f700b2c..51e4b77a52 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 10272da519..f220207c69 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 6258e9cec3..175802df61 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 fa79a78d19..e87097870f 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 a86b3ffbeb..867bbe6ab7 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 4cd7721dbb..2bb7582e61 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 1df7ca62f6..82d57b7702 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 9a32100230..9af7d37557 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 38b521939e..57f4b47ea6 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 3527cc0b48..c23e3546bb 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 376f700b2c..51e4b77a52 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 10272da519..f220207c69 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 6258e9cec3..175802df61 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 fa79a78d19..e87097870f 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 a86b3ffbeb..867bbe6ab7 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 4cd7721dbb..2bb7582e61 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 1df7ca62f6..82d57b7702 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 9a32100230..9af7d37557 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 38b521939e..57f4b47ea6 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");