Converted to a Makefile.am, fixed up the GstSrc thing, and removed a set to READY...
authorErik Walthinsen <omega@temple-baptist.org>
Sun, 31 Dec 2000 22:11:35 +0000 (22:11 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Sun, 31 Dec 2000 22:11:35 +0000 (22:11 +0000)
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.

tests/sched/Makefile [deleted file]
tests/sched/Makefile.am [new file with mode: 0644]
tests/sched/runxml.c
tests/sched/testcases

diff --git a/tests/sched/Makefile b/tests/sched/Makefile
deleted file mode 100644 (file)
index 69ad837..0000000
+++ /dev/null
@@ -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
-       
-       
diff --git a/tests/sched/Makefile.am b/tests/sched/Makefile.am
new file mode 100644 (file)
index 0000000..a4ec5f4
--- /dev/null
@@ -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)        
index e1e2e65..a1bc8a2 100644 (file)
@@ -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)) {
index cdbb456..c91ae3f 100644 (file)
@@ -14,6 +14,8 @@
  ! [--------]             [--------] !
  [-----------------------------------]
 
+fakesrc ! fakesink
+
 2)
 
  
@@ -24,6 +26,8 @@
  ! [--------]        [--------]           [--------] !
  [---------------------------------------------------]
 
+fakesrc ! identity ! fakesink
+
 3)
 
 
@@ -33,6 +37,8 @@
  ! !       src --- sink   *   src ----- sink       ! !
  ! [--------]        [--------]           [--------] !
  [---------------------------------------------------]
+
+fakesrc ! @identity ! fakesink
  
 4)
 
@@ -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
  [ [-----------------------------------] ]
  [---------------------------------------]
 
+(fakesrc ! fakesink)
+
 7)
 
  [-bin-----------------------------------]
  [ [--------------]                      ]
  [---------------------------------------]
 
+(fakesrc) ! fakesink
 
 8)
 
  [                   [-----------------] ]
  [---------------------------------------]
 
+fakesrc ! (fakesink)
 
 9)
 
  [                                   [-----------------] !
  [-------------------------------------------------------]
 
+fakesrc ! identity ! (fakesink)
 
 10)
 
  [                                   [-----------------] !
  [-------------------------------------------------------]
 
+fakesrc ! @identity ! (fakesink)
 
 11)
 
  [                [------------------------------------] !
  [-------------------------------------------------------]
 
+fakesrc ! (identity ! fakesink)
 
 12)
 
  [                [------------------------------------] !
  [-------------------------------------------------------]
 
+fakesrc ! (@identity ! fakesink)
 
 13)
 
  [ [---------------------------------]                   !
  [-------------------------------------------------------]
 
+(fakesrc ! identity) ! fakesink
 
 14)
 
  ! [---------------------------------]                   !
  [-------------------------------------------------------]
 
+(fakesrc ! @identity) ! fakesink
 
 15)
 
  ! [---------------------------------]                                !
  [--------------------------------------------------------------------]
 
+(fakesrc ! identity) ! identity ! fakesink
 
 16)
 
  !                                 [--------------------------------] !
  [--------------------------------------------------------------------]
 
+fakesrc ! identity ! (identity ! fakesink)
 
 17)
 
  !                                 [--------------------------------] !
  [--------------------------------------------------------------------]
 
+fakesrc ! identity ! (@identity ! fakesink)
 
 18)
 
  !                                 [--------------------------------] !
  [--------------------------------------------------------------------]
 
+fakesrc ! @identity ! @identity ! fakesink
 
 19)
 
  ! [---------------------------------]                                !
  [--------------------------------------------------------------------]
 
+(fakesrc ! @identity) ! identity ! fakesink
+
 20)
 
  [-bin----------------------------------------------------------------]
  ! [---------------------------------]                                !
  [--------------------------------------------------------------------]
 
+(fakesrc ! identity)  ! @identity ! fakesink
 
 21)
 
  ! [---------------------------------]                                !
  [--------------------------------------------------------------------]
 
+(fakesrc ! @identity) ! @identity ! fakesink
 
 22)
 
  ! [--------------------------------] [---------------------------------] !
  [------------------------------------------------------------------------]
 
+(fakesrc ! identity) ! (identity ! fakesink)
 
 23)
 
  ! [--------------------------------] [---------------------------------] !
  [------------------------------------------------------------------------]
 
+(fakesrc ! identity) ! (@identity ! fakesink)
 
 24)
 
  ! [--------------------------------] [---------------------------------] !
  [------------------------------------------------------------------------]
 
+(fakesrc ! @identity) ! (identity ! fakesink)
 
 25)
 
  ! [--------------------------------] [---------------------------------] !
  [------------------------------------------------------------------------]
 
+(fakesrc ! @identity) ! (@identity ! fakesink)
 
 /**************************************************************************************/
  * threads
  [ [-----------------------------------] ]
  [---------------------------------------]
 
+[fakesrc ! fakesink]
+
 27)
 
  [-thread--------------------------------]
  ! ! [--------]        [--------]   !     [-----]      [--------]      [-----]   !    [--------]  ! !
  ! [--------------------------------]                                            [----------------] !
  [--------------------------------------------------------------------------------------------------]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-