How to print out the caps of appsrc element

Wim Taymans wim.taymans at
Fri Jul 15 08:06:10 PDT 2011

On 07/15/2011 04:54 PM, William Metcalf wrote:
> I am writing a program that uses the appsrc element to to push buffers 
> into a pipeline.  I am interested in printing out the caps of the 
> appsrc element in my program, but I am having trouble doing this.  Can 
> someone please provide me with some information on how to 
> programatically print out the caps of a pad?

Something like this:

gchar *capsstr;
capsstr = gst_caps_to_string (GST_PAD_CAPS (pad)))
g_print ("caps: %s\n", capsstr);
g_free (capsstr);

or with the printf extensions:


> Thank you,
> William
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list