gstreamer/testsuite/cleanup/cleanup5.c
Wim Taymans 086de421dc Totally rewritten registry handling.
Original commit message from CVS:
Totally rewritten registry handling.
- move the registry save/load code into a gstregistry subclass, this
will make it possible to use other registries (flat file, web based,
RDBMS type, etc..)
- a simple GMarkup xml registry is implemented
- use standard statically linked plugins for core elements.
- GstPlugin has a very well defined set of functions now
A little bytestream hack..
Added more info to -inspect.
Some more debugging info for clocking.
Small cleanups

I use ./gst-register --gst-plugin-path=/opt/src/sourceforge/gst-plugins/gst-libs:/opt/src/sourceforge/gst-plugins/
to register core and gst-plugins now.
2002-05-08 20:40:48 +00:00

38 lines
633 B
C

#include <gst/gst.h>
int main(int argc,char *argv[])
{
GstElement *bin, *element;
gint i=1000000;
free (malloc(8)); /* -lefence */
gst_init (&argc, &argv);
g_mem_chunk_info ();
bin = gst_pipeline_new ("pipeline");
while (i--)
{
GstPad *pad;
fprintf (stderr, "+");
element = gst_element_factory_make ("tee", "tee");
if (!element)
break;
pad = gst_element_request_pad_by_name (element, "src%d");
gst_bin_add (GST_BIN (bin), element);
gst_bin_remove (GST_BIN (bin), element);
}
fprintf (stderr, "+\n");
gst_object_unref (GST_OBJECT (bin));
g_mem_chunk_info ();
}