Added another testcase.

Original commit message from CVS:
Added another testcase.
This commit is contained in:
Wim Taymans 2002-01-27 19:24:23 +00:00
parent 40724bf5ad
commit f6027148a4
4 changed files with 46 additions and 2 deletions

View file

@ -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)

View 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);
}
}

View file

@ -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)

View 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);
}
}