Converted to a Makefile.am, fixed up the GstSrc thing, and removed a set to READY state before PLAYING that isn't nec...

Original commit message from CVS:
Converted to a Makefile.am, fixed up the GstSrc thing, and removed a set
to READY state before PLAYING that isn't necessary.
This commit is contained in:
Erik Walthinsen 2000-12-31 22:11:35 +00:00
parent b0278edf75
commit 86e3f88515
4 changed files with 48 additions and 33 deletions

View file

@ -1,12 +0,0 @@
CC = libtool gcc
all: runxml
runxml: runxml.c
$(CC) -Wall `gstreamer-config --cflags --libs` runxml.c -o runxml
clean:
rm -f *.o runxml

6
tests/sched/Makefile.am Normal file
View file

@ -0,0 +1,6 @@
noinst_PROGRAMS = runxml
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la
CFLAGS = -Wall
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir)

View file

@ -1,3 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <gst/gst.h> #include <gst/gst.h>
static guint outcount, incount; static guint outcount, incount;
@ -19,7 +21,7 @@ buffer_handoff_src (GstElement *src, GstElement *bin)
} }
/* 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");
} }
@ -72,7 +74,7 @@ int main(int argc,char *argv[])
incount = 0; incount = 0;
outcount = 0; outcount = 0;
gst_element_set_state(bin, GST_STATE_READY); // gst_element_set_state(bin, GST_STATE_READY);
gst_element_set_state(bin, GST_STATE_PLAYING); gst_element_set_state(bin, GST_STATE_PLAYING);
if (GST_IS_THREAD (bin)) { if (GST_IS_THREAD (bin)) {

View file

@ -14,6 +14,8 @@
! [--------] [--------] ! ! [--------] [--------] !
[-----------------------------------] [-----------------------------------]
fakesrc ! fakesink
2) 2)
@ -24,6 +26,8 @@
! [--------] [--------] [--------] ! ! [--------] [--------] [--------] !
[---------------------------------------------------] [---------------------------------------------------]
fakesrc ! identity ! fakesink
3) 3)
@ -34,6 +38,8 @@
! [--------] [--------] [--------] ! ! [--------] [--------] [--------] !
[---------------------------------------------------] [---------------------------------------------------]
fakesrc ! @identity ! fakesink
4) 4)
[-bin--------------------------------------------------------------] [-bin--------------------------------------------------------------]
@ -43,6 +49,8 @@
! [--------] [--------] [--------] [--------] ! ! [--------] [--------] [--------] [--------] !
[------------------------------------------------------------------] [------------------------------------------------------------------]
fakesrc ! identity ! identity ! fakesink
4b) 4b)
[-bin--------------------------------------------------------------] [-bin--------------------------------------------------------------]
@ -52,6 +60,8 @@
! [--------] [--------] [--------] [--------] ! ! [--------] [--------] [--------] [--------] !
[------------------------------------------------------------------] [------------------------------------------------------------------]
fakesrc ! @identity ! identity ! fakesink
5) 5)
[------------------------------------------------------------------] [------------------------------------------------------------------]
@ -61,6 +71,8 @@
! [--------] [--------] [--------] [--------] ! ! [--------] [--------] [--------] [--------] !
[------------------------------------------------------------------] [------------------------------------------------------------------]
fakesrc ! identity ! @identity ! fakesink
5b) 5b)
[------------------------------------------------------------------] [------------------------------------------------------------------]
@ -70,6 +82,8 @@
! [--------] [--------] [--------] [--------] ! ! [--------] [--------] [--------] [--------] !
[------------------------------------------------------------------] [------------------------------------------------------------------]
fakesrc ! @identity ! @identity ! fakesink
/**************************************************************************************/ /**************************************************************************************/
* bin-in-bin based * bin-in-bin based
@ -86,6 +100,8 @@
[ [-----------------------------------] ] [ [-----------------------------------] ]
[---------------------------------------] [---------------------------------------]
(fakesrc ! fakesink)
7) 7)
[-bin-----------------------------------] [-bin-----------------------------------]
@ -97,6 +113,7 @@
[ [--------------] ] [ [--------------] ]
[---------------------------------------] [---------------------------------------]
(fakesrc) ! fakesink
8) 8)
@ -109,6 +126,7 @@
[ [-----------------] ] [ [-----------------] ]
[---------------------------------------] [---------------------------------------]
fakesrc ! (fakesink)
9) 9)
@ -121,6 +139,7 @@
[ [-----------------] ! [ [-----------------] !
[-------------------------------------------------------] [-------------------------------------------------------]
fakesrc ! identity ! (fakesink)
10) 10)
@ -133,6 +152,7 @@
[ [-----------------] ! [ [-----------------] !
[-------------------------------------------------------] [-------------------------------------------------------]
fakesrc ! @identity ! (fakesink)
11) 11)
@ -145,6 +165,7 @@
[ [------------------------------------] ! [ [------------------------------------] !
[-------------------------------------------------------] [-------------------------------------------------------]
fakesrc ! (identity ! fakesink)
12) 12)
@ -157,6 +178,7 @@
[ [------------------------------------] ! [ [------------------------------------] !
[-------------------------------------------------------] [-------------------------------------------------------]
fakesrc ! (@identity ! fakesink)
13) 13)
@ -169,6 +191,7 @@
[ [---------------------------------] ! [ [---------------------------------] !
[-------------------------------------------------------] [-------------------------------------------------------]
(fakesrc ! identity) ! fakesink
14) 14)
@ -181,6 +204,7 @@
! [---------------------------------] ! ! [---------------------------------] !
[-------------------------------------------------------] [-------------------------------------------------------]
(fakesrc ! @identity) ! fakesink
15) 15)
@ -193,6 +217,7 @@
! [---------------------------------] ! ! [---------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
(fakesrc ! identity) ! identity ! fakesink
16) 16)
@ -205,6 +230,7 @@
! [--------------------------------] ! ! [--------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
fakesrc ! identity ! (identity ! fakesink)
17) 17)
@ -217,6 +243,7 @@
! [--------------------------------] ! ! [--------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
fakesrc ! identity ! (@identity ! fakesink)
18) 18)
@ -229,6 +256,7 @@
! [--------------------------------] ! ! [--------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
fakesrc ! @identity ! @identity ! fakesink
19) 19)
@ -241,6 +269,8 @@
! [---------------------------------] ! ! [---------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
(fakesrc ! @identity) ! identity ! fakesink
20) 20)
[-bin----------------------------------------------------------------] [-bin----------------------------------------------------------------]
@ -252,6 +282,7 @@
! [---------------------------------] ! ! [---------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
(fakesrc ! identity) ! @identity ! fakesink
21) 21)
@ -264,6 +295,7 @@
! [---------------------------------] ! ! [---------------------------------] !
[--------------------------------------------------------------------] [--------------------------------------------------------------------]
(fakesrc ! @identity) ! @identity ! fakesink
22) 22)
@ -276,6 +308,7 @@
! [--------------------------------] [---------------------------------] ! ! [--------------------------------] [---------------------------------] !
[------------------------------------------------------------------------] [------------------------------------------------------------------------]
(fakesrc ! identity) ! (identity ! fakesink)
23) 23)
@ -288,6 +321,7 @@
! [--------------------------------] [---------------------------------] ! ! [--------------------------------] [---------------------------------] !
[------------------------------------------------------------------------] [------------------------------------------------------------------------]
(fakesrc ! identity) ! (@identity ! fakesink)
24) 24)
@ -300,6 +334,7 @@
! [--------------------------------] [---------------------------------] ! ! [--------------------------------] [---------------------------------] !
[------------------------------------------------------------------------] [------------------------------------------------------------------------]
(fakesrc ! @identity) ! (identity ! fakesink)
25) 25)
@ -312,6 +347,7 @@
! [--------------------------------] [---------------------------------] ! ! [--------------------------------] [---------------------------------] !
[------------------------------------------------------------------------] [------------------------------------------------------------------------]
(fakesrc ! @identity) ! (@identity ! fakesink)
/**************************************************************************************/ /**************************************************************************************/
* threads * threads
@ -328,6 +364,8 @@
[ [-----------------------------------] ] [ [-----------------------------------] ]
[---------------------------------------] [---------------------------------------]
[fakesrc ! fakesink]
27) 27)
[-thread--------------------------------] [-thread--------------------------------]
@ -1020,22 +1058,3 @@
! ! [--------] [--------] ! [-----] [--------] [-----] ! [--------] ! ! ! ! [--------] [--------] ! [-----] [--------] [-----] ! [--------] ! !
! [--------------------------------] [----------------] ! ! [--------------------------------] [----------------] !
[--------------------------------------------------------------------------------------------------] [--------------------------------------------------------------------------------------------------]