]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
Fixed makefiles for docs
authorWim Taymans <wim.taymans@gmail.com>
Tue, 2 Jan 2001 02:16:24 +0000 (02:16 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 2 Jan 2001 02:16:24 +0000 (02:16 +0000)
Original commit message from CVS:
Fixed makefiles for docs
Added eos test programs

docs/gst/Makefile.am
docs/gst/gstreamer-sections.txt
editor/pixmaps/Makefile.am [new file with mode: 0644]
tests/Makefile.am
tests/eos/Makefile.am [new file with mode: 0644]
tests/eos/case1.c [new file with mode: 0644]

index 53431b99e6fdccbbd7b494441c6fb25e1dc6aa4d..ebd57269ddeb5950b9c4d7d6f2e53882a1f7c34c 100644 (file)
@@ -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
 
index e68939f74cdab281f72713ca422187d178772239..bf15ac972388b6fc42e6282062b092233823cd0d 100644 (file)
@@ -664,20 +664,6 @@ GST_IS_DISKSRC_CLASS
 gst_disksrc_details
 </SECTION>
 
-<SECTION>
-<FILE>gstesdsink</FILE>
-<TITLE>GstEsdSink</TITLE>
-<SUBSECTION Standard>
-GstEsdSink
-GstEsdSinkClass
-gst_esdsink_get_type
-GST_TYPE_ESDSINK
-GST_ESDSINK
-GST_ESDSINK_CLASS
-GST_IS_ESDSINK
-GST_IS_ESDSINK_CLASS
-</SECTION>
-
 <SECTION>
 <FILE>gstfakesink</FILE>
 <TITLE>GstFakeSink</TITLE>
diff --git a/editor/pixmaps/Makefile.am b/editor/pixmaps/Makefile.am
new file mode 100644 (file)
index 0000000..9c6bba4
--- /dev/null
@@ -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)
index ef810bb3e8966e0b2a0605afe27b412fc53074f5..7ddf5eadfd84a2da8f9b4684afaf771db889524e 100644 (file)
@@ -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 (file)
index 0000000..374ae89
--- /dev/null
@@ -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 (file)
index 0000000..34a4fd9
--- /dev/null
@@ -0,0 +1,55 @@
+#include <gst/gst.h>
+
+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);
+}