From 49b6a515346c04a93ea9f78bc7b1a54106e6c2c8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jan 2001 02:16:24 +0000 Subject: [PATCH] Fixed makefiles for docs Original commit message from CVS: Fixed makefiles for docs Added eos test programs --- docs/gst/Makefile.am | 2 +- docs/gst/gstreamer-sections.txt | 14 ----------- editor/pixmaps/Makefile.am | 4 +++ tests/Makefile.am | 2 +- tests/eos/Makefile.am | 6 +++++ tests/eos/case1.c | 55 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 67 insertions(+), 16 deletions(-) create mode 100644 editor/pixmaps/Makefile.am create mode 100644 tests/eos/Makefile.am create mode 100644 tests/eos/case1.c diff --git a/docs/gst/Makefile.am b/docs/gst/Makefile.am index 53431b9..ebd5726 100644 --- a/docs/gst/Makefile.am +++ b/docs/gst/Makefile.am @@ -12,7 +12,7 @@ DOC_SOURCE_DIR=$(top_srcdir)/gst CFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir) LDFLAGS = $(GLIB_LIBS) $(GTK_LIBS) $(top_srcdir)/gst/.libs/libgst.so $(top_srcdir)/gst/elements/.libs/libgstelements.so -EXTRA_DIST = gstreamer.types.in gstreamer.hierarchy $(DOC_MODULE)-sections.txt +EXTRA_DIST = gstreamer.types.in gstreamer.hierarchy $(DOC_MODULE)-sections.txt $(DOC_MAIN_SGML_FILE) HTML_DIR=$(datadir)/gstreamer/html diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index e68939f..bf15ac9 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -665,20 +665,6 @@ gst_disksrc_details
-gstesdsink -GstEsdSink - -GstEsdSink -GstEsdSinkClass -gst_esdsink_get_type -GST_TYPE_ESDSINK -GST_ESDSINK -GST_ESDSINK_CLASS -GST_IS_ESDSINK -GST_IS_ESDSINK_CLASS -
- -
gstfakesink GstFakeSink diff --git a/editor/pixmaps/Makefile.am b/editor/pixmaps/Makefile.am new file mode 100644 index 0000000..9c6bba4 --- /dev/null +++ b/editor/pixmaps/Makefile.am @@ -0,0 +1,4 @@ +xpmdir = $(datadir)/gsteditor/pixmaps +xpm_DATA = bin.xpm element.xpm pipeline.xpm selector.xpm tee.xpm thread.xpm + +EXTRA_DIST = $(xpm_DATA) diff --git a/tests/Makefile.am b/tests/Makefile.am index ef810bb..7ddf5ea 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,7 @@ SUBDIRS = sched noinst_PROGRAMS = init loadall simplefake states caps queue registry \ -paranoia rip mp3encode autoplug props case4 markup load +paranoia rip mp3encode autoplug props case4 markup load eos LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la CFLAGS = -Wall diff --git a/tests/eos/Makefile.am b/tests/eos/Makefile.am new file mode 100644 index 0000000..374ae89 --- /dev/null +++ b/tests/eos/Makefile.am @@ -0,0 +1,6 @@ +noinst_PROGRAMS = case1 + +LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la +CFLAGS = -Wall + +INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir) diff --git a/tests/eos/case1.c b/tests/eos/case1.c new file mode 100644 index 0000000..34a4fd9 --- /dev/null +++ b/tests/eos/case1.c @@ -0,0 +1,55 @@ +#include + +gboolean playing = TRUE; + +static void +eos_signal_element (GstElement *element) +{ + g_print ("element eos received from \"%s\"\n", gst_element_get_name (element)); +} + +static void +eos_signal (GstElement *element) +{ + g_print ("eos received from \"%s\"\n", gst_element_get_name (element)); + + playing = FALSE; +} + +int +main(int argc,char *argv[]) +{ + GstBin *pipeline; + GstElement *src,*identity,*sink; + + gst_init(&argc,&argv); + + pipeline = GST_BIN(gst_pipeline_new("pipeline")); + g_return_val_if_fail(pipeline != NULL, 1); + + src = gst_elementfactory_make("fakesrc","src"); + gtk_object_set (GTK_OBJECT (src), "num_buffers", 1, NULL); + g_return_val_if_fail(src != NULL, 2); + + identity = gst_elementfactory_make("identity","identity"); + g_return_val_if_fail(identity != NULL, 3); + sink = gst_elementfactory_make("fakesink","sink"); + g_return_val_if_fail(sink != NULL, 4); + + gst_bin_add(pipeline,GST_ELEMENT(src)); + gst_bin_add(pipeline,GST_ELEMENT(identity)); + gst_bin_add(pipeline,GST_ELEMENT(sink)); + + gst_element_connect(src,"src",identity,"sink"); + gst_element_connect(identity,"src",sink,"sink"); + + gtk_signal_connect (GTK_OBJECT (src), "eos", eos_signal_element, NULL); + gtk_signal_connect (GTK_OBJECT (pipeline), "eos", eos_signal, NULL); + + gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING); + + while (playing) + gst_bin_iterate(pipeline); + + exit (0); +} -- 2.7.4