From 4bfb312e1334b52710e946ea210d8e99b657bd0c Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 6 Jul 2009 19:48:58 +0100 Subject: [PATCH] logging: use perf category for dropped buffers --- libs/gst/base/gstbasesink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 780fc3f727..89397dd82f 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -2562,7 +2562,8 @@ gst_base_sink_is_too_late (GstBaseSink * basesink, GstMiniObject * obj, /* if the jitter bigger than duration and lateness we are too late */ if ((late = start + jitter > max_lateness)) { - GST_DEBUG_OBJECT (basesink, "buffer is too late %" GST_TIME_FORMAT + GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, basesink, + "buffer is too late %" GST_TIME_FORMAT " > %" GST_TIME_FORMAT, GST_TIME_ARGS (start + jitter), GST_TIME_ARGS (max_lateness)); /* !!emergency!!, if we did not receive anything valid for more than a @@ -2572,7 +2573,7 @@ gst_base_sink_is_too_late (GstBaseSink * basesink, GstMiniObject * obj, GST_ELEMENT_WARNING (basesink, CORE, CLOCK, (_("A lot of buffers are being dropped.")), ("There may be a timestamping problem, or this computer is too slow.")); - GST_DEBUG_OBJECT (basesink, + GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, basesink, "**emergency** last buffer at %" GST_TIME_FORMAT " > GST_SECOND", GST_TIME_ARGS (priv->last_in_time)); }