videolevels: add debugging message with processing time

This commit is contained in:
Joshua M. Doe 2012-07-03 02:47:26 -04:00
parent ad240b0ae3
commit 24b7fa4fc3

View File

@ -513,6 +513,8 @@ gst_videolevels_transform (GstBaseTransform * base, GstBuffer * inbuf,
gpointer output;
gboolean ret;
GstClockTimeDiff elapsed;
GstClockTime start =
gst_clock_get_time (gst_element_get_clock (GST_ELEMENT (base)));
GST_DEBUG_OBJECT (videolevels, "Performing non-inplace transform");
@ -538,6 +540,11 @@ gst_videolevels_transform (GstBaseTransform * base, GstBuffer * inbuf,
ret = gst_videolevels_do_levels (videolevels, input, output);
GST_DEBUG_OBJECT (videolevels, "Processing took %" G_GINT64_FORMAT "ms",
GST_TIME_AS_MSECONDS (GST_CLOCK_DIFF (start,
gst_clock_get_time (gst_element_get_clock (GST_ELEMENT
(videolevels))))));
if (ret)
return GST_FLOW_OK;
else