geometrictransform: Set output buffer data to 0

Initialize output buffer data to 0 before doing the
transform.
This commit is contained in:
Thiago Santos 2010-06-05 11:04:45 -03:00
parent 964c71b7c6
commit 581b63c678

View file

@ -207,6 +207,8 @@ gst_geometric_transform_transform (GstBaseTransform * trans, GstBuffer * buf,
g_return_val_if_fail (gt->map, GST_FLOW_ERROR); g_return_val_if_fail (gt->map, GST_FLOW_ERROR);
memset (GST_BUFFER_DATA (outbuf), 0, GST_BUFFER_SIZE (outbuf));
ptr = gt->map; ptr = gt->map;
for (y = 0; y < gt->height; y++) { for (y = 0; y < gt->height; y++) {
for (x = 0; x < gt->width; x++) { for (x = 0; x < gt->width; x++) {