How to print out the caps of appsrc element

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to print out the caps of appsrc element

william.l.metcalf
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?

Thank you,
William
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to print out the caps of appsrc element

Wim Taymans
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
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel