cleaned up the examples, added Makefiles, etc

Original commit message from CVS:
cleaned up the examples, added Makefiles, etc
This commit is contained in:
Erik Walthinsen 2001-01-01 00:42:10 +00:00
parent 0b650eb737
commit 5307686379
20 changed files with 48 additions and 22 deletions

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,7 +1,8 @@
#include <stdlib.h>
#include <gst/gst.h>
/* 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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,7 +1,7 @@
#include <gst/gst.h>
/* 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");

View file

@ -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

View file

@ -1,3 +1,4 @@
#include <stdlib.h>
#include <gst/gst.h>
gboolean playing;

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,7 +1,8 @@
#include <stdlib.h>
#include <gst/gst.h>
/* 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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");

View file

@ -1,7 +1,7 @@
#include <gst/gst.h>
/* 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");

View file

@ -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

View file

@ -1,3 +1,4 @@
#include <stdlib.h>
#include <gst/gst.h>
gboolean playing;

View file

@ -1,9 +1,10 @@
#include <stdlib.h>
#include <gst/gst.h>
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");