From: Brian M. <mi...@aw...> - 2011-02-09 20:13:19
|
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; } |