[gst-devel] caps dump causing memory exeption
Feng Ye
fye at broadcom.com
Wed Oct 27 03:06:12 CEST 2010
Hello,
I try to dump out the caps in the setcaps function like below and it gives fatal memory exception:
static gboolean hantro_dec_setcaps (GstPad * pad, GstCaps * caps) {
...
GST_DEBUG_OBJECT (dec, "setcaps: %" GST_PTR_FORMAT, caps);
Or: GST_LOG ("setcaps: %" GST_PTR_FORMAT, caps);
The caps itself is not null, and it contains valid info, like width and height, which I can use this to get:
structure = gst_caps_get_structure (caps, 0);
width = gst_structure_get_value (structure, "width");
As long as I don't dump my code runs fine. I am not sure what's the reason.
Thanks,
Feng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101026/96d9a48d/attachment.htm>
More information about the gstreamer-devel
mailing list