From: Nirbheek Chauhan Date: Sat, 27 Dec 2014 10:45:41 +0000 (+0530) Subject: aggregator: Log to the pad instead of the element X-Git-Tag: 1.16.2~574^2~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ced334d39756cb37976f4e4c2079cb8eb97f5ef6;p=platform%2Fupstream%2Fgstreamer.git aggregator: Log to the pad instead of the element More correct way of doing the same thing as before --- diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 9ab31c1..1859ef4 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -1009,9 +1009,8 @@ _latency_query (GstAggregator * self, GstPad * pad, gpointer user_data) if (res) { gst_query_parse_latency (query, &live, &min, &max); - GST_LOG_OBJECT (self, "%s: got latency live:%s min:%" G_GINT64_FORMAT - " max:%" G_GINT64_FORMAT, GST_PAD_NAME (pad), - live ? "true" : "false", min, max); + GST_LOG_OBJECT (pad, "got latency live:%s min:%" G_GINT64_FORMAT + " max:%" G_GINT64_FORMAT, live ? "true" : "false", min, max); if (min != GST_CLOCK_TIME_NONE && min > data->min) data->min = min;