Error getting component width

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error getting component width

Brian Michalk
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel