mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
b0278edf75
commit
86e3f88515
4 changed files with 48 additions and 33 deletions
|
@ -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
6
tests/sched/Makefile.am
Normal 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)
|
|
@ -1,3 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
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 */
|
||||
void eos(GstSrc *src, gpointer data)
|
||||
void eos(GstElement *element, gpointer data)
|
||||
{
|
||||
g_print("have eos, quitting\n");
|
||||
}
|
||||
|
@ -72,7 +74,7 @@ int main(int argc,char *argv[])
|
|||
incount = 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);
|
||||
|
||||
if (GST_IS_THREAD (bin)) {
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
! [--------] [--------] !
|
||||
[-----------------------------------]
|
||||
|
||||
fakesrc ! fakesink
|
||||
|
||||
2)
|
||||
|
||||
|
||||
|
@ -24,6 +26,8 @@
|
|||
! [--------] [--------] [--------] !
|
||||
[---------------------------------------------------]
|
||||
|
||||
fakesrc ! identity ! fakesink
|
||||
|
||||
3)
|
||||
|
||||
|
||||
|
@ -34,6 +38,8 @@
|
|||
! [--------] [--------] [--------] !
|
||||
[---------------------------------------------------]
|
||||
|
||||
fakesrc ! @identity ! fakesink
|
||||
|
||||
4)
|
||||
|
||||
[-bin--------------------------------------------------------------]
|
||||
|
@ -43,6 +49,8 @@
|
|||
! [--------] [--------] [--------] [--------] !
|
||||
[------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! identity ! identity ! fakesink
|
||||
|
||||
4b)
|
||||
|
||||
[-bin--------------------------------------------------------------]
|
||||
|
@ -52,6 +60,8 @@
|
|||
! [--------] [--------] [--------] [--------] !
|
||||
[------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! @identity ! identity ! fakesink
|
||||
|
||||
5)
|
||||
|
||||
[------------------------------------------------------------------]
|
||||
|
@ -61,6 +71,8 @@
|
|||
! [--------] [--------] [--------] [--------] !
|
||||
[------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! identity ! @identity ! fakesink
|
||||
|
||||
5b)
|
||||
|
||||
[------------------------------------------------------------------]
|
||||
|
@ -70,6 +82,8 @@
|
|||
! [--------] [--------] [--------] [--------] !
|
||||
[------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! @identity ! @identity ! fakesink
|
||||
|
||||
|
||||
/**************************************************************************************/
|
||||
* bin-in-bin based
|
||||
|
@ -86,6 +100,8 @@
|
|||
[ [-----------------------------------] ]
|
||||
[---------------------------------------]
|
||||
|
||||
(fakesrc ! fakesink)
|
||||
|
||||
7)
|
||||
|
||||
[-bin-----------------------------------]
|
||||
|
@ -97,6 +113,7 @@
|
|||
[ [--------------] ]
|
||||
[---------------------------------------]
|
||||
|
||||
(fakesrc) ! fakesink
|
||||
|
||||
8)
|
||||
|
||||
|
@ -109,6 +126,7 @@
|
|||
[ [-----------------] ]
|
||||
[---------------------------------------]
|
||||
|
||||
fakesrc ! (fakesink)
|
||||
|
||||
9)
|
||||
|
||||
|
@ -121,6 +139,7 @@
|
|||
[ [-----------------] !
|
||||
[-------------------------------------------------------]
|
||||
|
||||
fakesrc ! identity ! (fakesink)
|
||||
|
||||
10)
|
||||
|
||||
|
@ -133,6 +152,7 @@
|
|||
[ [-----------------] !
|
||||
[-------------------------------------------------------]
|
||||
|
||||
fakesrc ! @identity ! (fakesink)
|
||||
|
||||
11)
|
||||
|
||||
|
@ -145,6 +165,7 @@
|
|||
[ [------------------------------------] !
|
||||
[-------------------------------------------------------]
|
||||
|
||||
fakesrc ! (identity ! fakesink)
|
||||
|
||||
12)
|
||||
|
||||
|
@ -157,6 +178,7 @@
|
|||
[ [------------------------------------] !
|
||||
[-------------------------------------------------------]
|
||||
|
||||
fakesrc ! (@identity ! fakesink)
|
||||
|
||||
13)
|
||||
|
||||
|
@ -169,6 +191,7 @@
|
|||
[ [---------------------------------] !
|
||||
[-------------------------------------------------------]
|
||||
|
||||
(fakesrc ! identity) ! fakesink
|
||||
|
||||
14)
|
||||
|
||||
|
@ -181,6 +204,7 @@
|
|||
! [---------------------------------] !
|
||||
[-------------------------------------------------------]
|
||||
|
||||
(fakesrc ! @identity) ! fakesink
|
||||
|
||||
15)
|
||||
|
||||
|
@ -193,6 +217,7 @@
|
|||
! [---------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! identity) ! identity ! fakesink
|
||||
|
||||
16)
|
||||
|
||||
|
@ -205,6 +230,7 @@
|
|||
! [--------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! identity ! (identity ! fakesink)
|
||||
|
||||
17)
|
||||
|
||||
|
@ -217,6 +243,7 @@
|
|||
! [--------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! identity ! (@identity ! fakesink)
|
||||
|
||||
18)
|
||||
|
||||
|
@ -229,6 +256,7 @@
|
|||
! [--------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
fakesrc ! @identity ! @identity ! fakesink
|
||||
|
||||
19)
|
||||
|
||||
|
@ -241,6 +269,8 @@
|
|||
! [---------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! @identity) ! identity ! fakesink
|
||||
|
||||
20)
|
||||
|
||||
[-bin----------------------------------------------------------------]
|
||||
|
@ -252,6 +282,7 @@
|
|||
! [---------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! identity) ! @identity ! fakesink
|
||||
|
||||
21)
|
||||
|
||||
|
@ -264,6 +295,7 @@
|
|||
! [---------------------------------] !
|
||||
[--------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! @identity) ! @identity ! fakesink
|
||||
|
||||
22)
|
||||
|
||||
|
@ -276,6 +308,7 @@
|
|||
! [--------------------------------] [---------------------------------] !
|
||||
[------------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! identity) ! (identity ! fakesink)
|
||||
|
||||
23)
|
||||
|
||||
|
@ -288,6 +321,7 @@
|
|||
! [--------------------------------] [---------------------------------] !
|
||||
[------------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! identity) ! (@identity ! fakesink)
|
||||
|
||||
24)
|
||||
|
||||
|
@ -300,6 +334,7 @@
|
|||
! [--------------------------------] [---------------------------------] !
|
||||
[------------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! @identity) ! (identity ! fakesink)
|
||||
|
||||
25)
|
||||
|
||||
|
@ -312,6 +347,7 @@
|
|||
! [--------------------------------] [---------------------------------] !
|
||||
[------------------------------------------------------------------------]
|
||||
|
||||
(fakesrc ! @identity) ! (@identity ! fakesink)
|
||||
|
||||
/**************************************************************************************/
|
||||
* threads
|
||||
|
@ -328,6 +364,8 @@
|
|||
[ [-----------------------------------] ]
|
||||
[---------------------------------------]
|
||||
|
||||
[fakesrc ! fakesink]
|
||||
|
||||
27)
|
||||
|
||||
[-thread--------------------------------]
|
||||
|
@ -1020,22 +1058,3 @@
|
|||
! ! [--------] [--------] ! [-----] [--------] [-----] ! [--------] ! !
|
||||
! [--------------------------------] [----------------] !
|
||||
[--------------------------------------------------------------------------------------------------]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue