#include <gst/gst.h>

int main(int argc, char *argv[])
{
  guint64 times = 0;

  gst_init(&argc, &argv);

  do
  {
    GstElement *pipeline;
    GstBus *bus;

    pipeline = gst_pipeline_new(NULL);
    bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
    gst_bus_add_signal_watch(bus);

    gst_object_unref(pipeline);
    gst_object_unref(bus);

    if ((++times % 1000) == 0)
    {
      g_print("times %" G_GUINT64_FORMAT "\n", times++);
    }
  } while(TRUE);
}
