about gst_pad_get_name

Tim Müller tim at centricular.com
Mon Oct 13 07:54:04 PDT 2014


On Mon, 2014-10-13 at 17:08 +0530, Yogesh Tyagi wrote:

> but do I need to free padname in following case:
> 
> GST_DEBUG_OBJECT (demux, "removing src pad: %s", gst_pad_get_name
> (GST_PAD(pad)));

Yes, you do.

However, you can also just use:

 GST_DEBUG_OBJECT (demux, "removing src pad: %s", GST_PAD_NAME (pad));

or

 GST_DEBUG_OBJECT (pad, "removing src pad");

 Cheers
  -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list