add comments to show what pipeline is being constructed.
authorSteve Baker <steve@stevebaker.org>
Mon, 3 Jun 2002 18:51:08 +0000 (18:51 +0000)
committerSteve Baker <steve@stevebaker.org>
Mon, 3 Jun 2002 18:51:08 +0000 (18:51 +0000)
Original commit message from CVS:
add comments to show what pipeline is being constructed.
change threadstate3 to be { { fakesrc ! fakesink } } which doesn't change state once it has started

tests/threadstate/threadstate1.c
tests/threadstate/threadstate2.c
tests/threadstate/threadstate3.c

index bf1831d..5ab841f 100644 (file)
@@ -1,5 +1,10 @@
 #include <gst/gst.h>
 
+/* this pipeline is:
+ * { fakesrc ! fakesink }
+ */
+
+
 int main(int argc,char *argv[]) 
 {
   GstElement *fakesrc, *fakesink;
index 0aff932..f1013d3 100644 (file)
@@ -1,5 +1,9 @@
 #include <gst/gst.h>
 
+/* this pipeline is:
+ * { filesrc ! mad ! osssink }
+ */
+
 /* eos will be called when the src element has an end of stream */
 void eos(GstElement *element, gpointer data) 
 {
@@ -51,7 +55,7 @@ int main(int argc,char *argv[])
   for (x = 0 ; x < 10 ; x++){
     g_print("playing %d\n", x);
     gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PLAYING);
-    sleep(5);
+    sleep(2);
 
     g_print("pausing %d\n", x);
     gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PAUSED);
index a88439e..f565212 100644 (file)
@@ -1,5 +1,9 @@
 #include <gst/gst.h>
 
+/* this pipeline is:
+ * { { fakesrc ! fakesink } }
+ */
+
 int main(int argc,char *argv[]) 
 {
   GstElement *fakesrc, *fakesink;
@@ -30,8 +34,8 @@ int main(int argc,char *argv[])
     gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PLAYING);
     sleep(1);
 
-    g_print("pausing %d\n", x);
-    gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PAUSED);
+    g_print("nulling %d\n", x);
+    gst_element_set_state(GST_ELEMENT(thread), GST_STATE_NULL);
     sleep(1);
   }