mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Added another testcase.
Original commit message from CVS: Added another testcase.
This commit is contained in:
parent
40724bf5ad
commit
f6027148a4
4 changed files with 46 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
testprogs = cleanup1 cleanup2 cleanup3 cleanup4
|
testprogs = cleanup1 cleanup2 cleanup3 cleanup4 cleanup5
|
||||||
|
|
||||||
TESTS = $(testprogs)
|
TESTS = $(testprogs)
|
||||||
|
|
||||||
|
@ -13,3 +13,5 @@ cleanup3_LDADD = $(GST_LIBS)
|
||||||
cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
||||||
cleanup4_LDADD = $(GST_LIBS)
|
cleanup4_LDADD = $(GST_LIBS)
|
||||||
cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
||||||
|
cleanup5_LDADD = $(GST_LIBS)
|
||||||
|
cleanup5_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
||||||
|
|
20
tests/old/testsuite/cleanup/cleanup5.c
Normal file
20
tests/old/testsuite/cleanup/cleanup5.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
int main(int argc,char *argv[])
|
||||||
|
{
|
||||||
|
GstElement *bin, *decoder;
|
||||||
|
|
||||||
|
gst_init(&argc,&argv);
|
||||||
|
|
||||||
|
bin = gst_pipeline_new("pipeline");
|
||||||
|
|
||||||
|
while (TRUE)
|
||||||
|
{
|
||||||
|
decoder = gst_elementfactory_make("mpeg2dec","mpeg2dec");
|
||||||
|
if (!decoder)
|
||||||
|
break;
|
||||||
|
|
||||||
|
gst_bin_add(GST_BIN(bin), decoder);
|
||||||
|
gst_bin_remove(GST_BIN(bin), decoder);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
testprogs = cleanup1 cleanup2 cleanup3 cleanup4
|
testprogs = cleanup1 cleanup2 cleanup3 cleanup4 cleanup5
|
||||||
|
|
||||||
TESTS = $(testprogs)
|
TESTS = $(testprogs)
|
||||||
|
|
||||||
|
@ -13,3 +13,5 @@ cleanup3_LDADD = $(GST_LIBS)
|
||||||
cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
||||||
cleanup4_LDADD = $(GST_LIBS)
|
cleanup4_LDADD = $(GST_LIBS)
|
||||||
cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
||||||
|
cleanup5_LDADD = $(GST_LIBS)
|
||||||
|
cleanup5_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
|
||||||
|
|
20
testsuite/cleanup/cleanup5.c
Normal file
20
testsuite/cleanup/cleanup5.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
int main(int argc,char *argv[])
|
||||||
|
{
|
||||||
|
GstElement *bin, *decoder;
|
||||||
|
|
||||||
|
gst_init(&argc,&argv);
|
||||||
|
|
||||||
|
bin = gst_pipeline_new("pipeline");
|
||||||
|
|
||||||
|
while (TRUE)
|
||||||
|
{
|
||||||
|
decoder = gst_elementfactory_make("mpeg2dec","mpeg2dec");
|
||||||
|
if (!decoder)
|
||||||
|
break;
|
||||||
|
|
||||||
|
gst_bin_add(GST_BIN(bin), decoder);
|
||||||
|
gst_bin_remove(GST_BIN(bin), decoder);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue