From 995c5296097500196dbe1e5b82dc19c20a6272be Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 3 Jun 2002 18:51:08 +0000 Subject: [PATCH] add comments to show what pipeline is being constructed. 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 | 5 +++++ tests/threadstate/threadstate2.c | 6 +++++- tests/threadstate/threadstate3.c | 8 ++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/threadstate/threadstate1.c b/tests/threadstate/threadstate1.c index bf1831d..5ab841f 100644 --- a/tests/threadstate/threadstate1.c +++ b/tests/threadstate/threadstate1.c @@ -1,5 +1,10 @@ #include +/* this pipeline is: + * { fakesrc ! fakesink } + */ + + int main(int argc,char *argv[]) { GstElement *fakesrc, *fakesink; diff --git a/tests/threadstate/threadstate2.c b/tests/threadstate/threadstate2.c index 0aff932..f1013d3 100644 --- a/tests/threadstate/threadstate2.c +++ b/tests/threadstate/threadstate2.c @@ -1,5 +1,9 @@ #include +/* 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); diff --git a/tests/threadstate/threadstate3.c b/tests/threadstate/threadstate3.c index a88439e..f565212 100644 --- a/tests/threadstate/threadstate3.c +++ b/tests/threadstate/threadstate3.c @@ -1,5 +1,9 @@ #include +/* 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); } -- 2.7.4