gstreamer/tests/bufspeed/test1.c

20 lines
291 B
C
Raw Normal View History

#include <gst/gst.h>
#include "gst/gstbuffer.h"
#include "gst/gstbufferpool-default.h"
int
main (int argc, char *argv[])
{
GstBuffer *buf;
guint i;
gst_init (&argc, &argv);
for (i=0; i<5000000; i++) {
buf = gst_buffer_new ();
gst_buffer_unref (buf);
}
return 0;
}