From 591fbbcea764c0bba99e1aa9f0d93fdcf9c76943 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 19 May 2009 01:03:44 +0300 Subject: [PATCH] adder: use the pad in logging as objects Helps to differenciate between source and sinks pads. --- gst/adder/gstadder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index c076090..1a4ba38 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -288,7 +288,7 @@ gst_adder_setcaps (GstPad * pad, GstCaps * caps) gst_structure_get_int (structure, "endianness", &adder->endianness); gst_structure_get_boolean (structure, "signed", &adder->is_signed); - GST_INFO_OBJECT (adder, "parse_caps sets adder to format int, %d bit", + GST_INFO_OBJECT (pad, "parse_caps sets adder to format int, %d bit", adder->width); if (adder->endianness != G_BYTE_ORDER) @@ -315,7 +315,7 @@ gst_adder_setcaps (GstPad * pad, GstCaps * caps) gst_structure_get_int (structure, "width", &adder->width); gst_structure_get_int (structure, "endianness", &adder->endianness); - GST_INFO_OBJECT (adder, "parse_caps sets adder to format float, %d bit", + GST_INFO_OBJECT (pad, "parse_caps sets adder to format float, %d bit", adder->width); if (adder->endianness != G_BYTE_ORDER) -- 2.7.4