[gst-devel] Error getting component width
Brian Michalk
michalk at awpi.com
Wed Feb 9 21:12:57 CET 2011
I'm getting the following error, even after I added set_caps functions.
gst_video_format_get_component_width: assertion 'width > 0' failed.
My transform:
static GstFlowReturn
gst_xyz_transform_ip (GstBaseTransform * base, GstBuffer * outbuf) {
Gstxyz *filter = GST_XYZ (base);
if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (outbuf)))
gst_object_sync_values (G_OBJECT (filter), GST_BUFFER_TIMESTAMP
(outbuf));
if (filter->silent == FALSE) g_print ("I'm in.\n");
guint8 * data = GST_BUFFER_DATA (outbuf);
GstFlowReturn ret = GST_FLOW_OK;
VSImage dest = filter->dest;
// ERROR HERE
gint lwidth = gst_video_format_get_component_width (filter->format,
0, filter->dest.width);
gint lheight =
240;//gst_video_format_get_component_height(filter->format, 0,
filter->dest.height);
gint offset = 1; //gst_video_format_get_component_offset
(filter->format, 0, filter->dest.width, filter->dest.height);
return ret;
}
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list