-testprogs = cleanup1 cleanup2 cleanup3 cleanup4
+testprogs = cleanup1 cleanup2 cleanup3 cleanup4 cleanup5
TESTS = $(testprogs)
cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
cleanup4_LDADD = $(GST_LIBS)
cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
+cleanup5_LDADD = $(GST_LIBS)
+cleanup5_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
--- /dev/null
+#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);
+ }
+}
-testprogs = cleanup1 cleanup2 cleanup3 cleanup4
+testprogs = cleanup1 cleanup2 cleanup3 cleanup4 cleanup5
TESTS = $(testprogs)
cleanup3_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
cleanup4_LDADD = $(GST_LIBS)
cleanup4_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
+cleanup5_LDADD = $(GST_LIBS)
+cleanup5_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS)
--- /dev/null
+#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);
+ }
+}