Added another testcase.
[platform/upstream/gstreamer.git] / tests / old / testsuite / cleanup / cleanup5.c
1 #include <gst/gst.h>
2
3 int main(int argc,char *argv[]) 
4 {
5   GstElement *bin, *decoder;
6
7   gst_init(&argc,&argv);
8
9   bin = gst_pipeline_new("pipeline");
10
11   while (TRUE)
12   {
13     decoder = gst_elementfactory_make("mpeg2dec","mpeg2dec");
14     if (!decoder) 
15       break;
16
17     gst_bin_add(GST_BIN(bin), decoder);
18     gst_bin_remove(GST_BIN(bin), decoder);
19   }
20 }