cleaned up the examples, added Makefiles, etc
Original commit message from CVS: cleaned up the examples, added Makefiles, etc
This commit is contained in:
parent
0b650eb737
commit
5307686379
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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);
|
GstThread *thread = GST_THREAD(data);
|
||||||
g_print("have eos, quitting\n");
|
g_print("have eos, quitting\n");
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
CC = libtool gcc
|
CC = libtool gcc
|
||||||
|
|
||||||
xml: xml.c
|
all: createxml runxml
|
||||||
$(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml
|
|
||||||
|
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:
|
clean:
|
||||||
rm -f *.o xml
|
rm -f *.o createxml runxml
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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);
|
GstThread *thread = GST_THREAD(data);
|
||||||
g_print("have eos, quitting\n");
|
g_print("have eos, quitting\n");
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
CC = libtool gcc
|
CC = libtool gcc
|
||||||
|
|
||||||
xml: xml.c
|
all: createxml runxml
|
||||||
$(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml
|
|
||||||
|
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:
|
clean:
|
||||||
rm -f *.o xml
|
rm -f *.o createxml runxml
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean playing;
|
gboolean playing;
|
||||||
|
|
||||||
/* eos will be called when the src element has an end of stream */
|
/* 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");
|
g_print("have eos, quitting\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user