From: Erik Walthinsen Date: Wed, 27 Dec 2000 00:01:27 +0000 (+0000) Subject: added case4 X-Git-Tag: RELEASE-0_1_0-SLIPSTREAM~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d0694ade4609e9430283ac2a2359ae3e38c72da;p=platform%2Fupstream%2Fgstreamer.git added case4 Original commit message from CVS: added case4 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 019363d..c217c2e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ -noinst_PROGRAMS = init loadall simplefake states caps queue registry paranoia rip mp3encode autoplug props +noinst_PROGRAMS = init loadall simplefake states caps queue registry paranoia rip mp3encode autoplug props case4 LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la CFLAGS = -Wall diff --git a/tests/case4.c b/tests/case4.c new file mode 100644 index 0000000..a24c137 --- /dev/null +++ b/tests/case4.c @@ -0,0 +1,34 @@ +#include +#include + +int main(int argc,char *argv[]) { + GstBin *thread; + GstElement *src,*identity,*sink; + int i; + + DEBUG_ENTER("(%d)",argc); + + gst_init(&argc,&argv); + + thread = GST_BIN(gst_bin_new("bin4")); + src = gst_elementfactory_make("fakesrc","src"); + identity = gst_elementfactory_make("identity","identity"); + g_return_val_if_fail(identity != NULL,2); + gtk_object_set(GTK_OBJECT(identity),"loop_based",TRUE,NULL); + sink = gst_elementfactory_make("fakesink","sink"); + g_return_val_if_fail(sink != NULL,3); + + fprintf(stderr,"src %p identity %p sink %p\n",src,identity,sink); + gst_bin_add(thread,src); + gst_bin_add(thread,identity); + gst_bin_add(thread,sink); + + gst_element_connect(src,"src",identity,"sink"); + gst_element_connect(identity,"src",sink,"sink"); + fprintf(stderr,"done creating case4 pipeline\n\n\n"); + + gst_element_set_state(GST_ELEMENT(thread),GST_STATE_PLAYING); + + gst_bin_iterate(thread); + gst_bin_iterate(thread); +}