+2007-05-09 Tim-Philipp Müller <tim at centricular dot net>
+
+ * tests/benchmarks/complexity.c: (main):
+ * tests/benchmarks/mass-elements.c: (main):
+ Set a good example and don't leak messages.
+
2007-05-06 Stefan Kost <ensonic@users.sf.net>
* docs/gst/Makefile.am:
gint
main (gint argc, gchar * argv[])
{
+ GstMessage *msg;
GstElement *pipeline, *src, *e;
GSList *saved_src_list, *src_list, *new_src_list;
guint complexity_order, n_elements, i, j, max_this_level;
GST_TIME_ARGS (end - start));
start = gst_get_current_time ();
- gst_bus_poll (gst_element_get_bus (pipeline),
+ msg = gst_bus_poll (gst_element_get_bus (pipeline),
GST_MESSAGE_EOS | GST_MESSAGE_ERROR, -1);
end = gst_get_current_time ();
+ gst_message_unref (msg);
g_print ("%" GST_TIME_FORMAT " - putting %u buffers through\n",
GST_TIME_ARGS (end - start), BUFFER_COUNT);
gint
main (gint argc, gchar * argv[])
{
+ GstMessage *msg;
GstElement *pipeline, *src, *sink, *current, *last;
guint i, buffers = BUFFER_COUNT, identities = IDENTITY_COUNT;
GstClockTime start, end;
GST_TIME_ARGS (end - start));
start = gst_get_current_time ();
- gst_bus_poll (gst_element_get_bus (pipeline),
+ msg = gst_bus_poll (gst_element_get_bus (pipeline),
GST_MESSAGE_EOS | GST_MESSAGE_ERROR, -1);
end = gst_get_current_time ();
+ gst_message_unref (msg);
g_print ("%" GST_TIME_FORMAT " - putting %u buffers through\n",
GST_TIME_ARGS (end - start), buffers);