mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
Fixed makefiles for docs
Original commit message from CVS: Fixed makefiles for docs Added eos test programs
This commit is contained in:
parent
dd37e99746
commit
49b6a51534
6 changed files with 67 additions and 16 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
4
editor/pixmaps/Makefile.am
Normal file
4
editor/pixmaps/Makefile.am
Normal file
|
@ -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)
|
|
@ -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
|
||||
|
|
6
tests/eos/Makefile.am
Normal file
6
tests/eos/Makefile.am
Normal file
|
@ -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)
|
55
tests/eos/case1.c
Normal file
55
tests/eos/case1.c
Normal file
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue