How to print out the caps of appsrc element

Wim Taymans wim.taymans at gmail.com
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:

  GST_DEBUG ("caps: %" GST_PTR_FORMAT, GST_PAD_CAPS (pad));

Wim
>
> Thank you,
> William
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list