aggregator: Print the sinkpad name while logging latency queries

Very useful while debugging.
This commit is contained in:
Nirbheek Chauhan 2014-12-27 04:21:26 +05:30 committed by Sebastian Dröge
parent f3efb9e7d6
commit 3193094cbc

View file

@ -1011,8 +1011,9 @@ _latency_query (GstAggregator * self, GstPad * pad, gpointer user_data)
if (res) {
gst_query_parse_latency (query, &live, &min, &max);
GST_LOG_OBJECT (self, "got latency live:%s min:%" G_GINT64_FORMAT
" max:%" G_GINT64_FORMAT, live ? "true" : "false", 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);
if (min > data->min)
data->min = min;