zbar: use GST_MAKE_FOURCC to create FOURCC

This commit is contained in:
Tim-Philipp Müller 2010-01-11 00:16:18 +00:00
parent d68c2d4ab9
commit 0bd4d4e27b

View file

@ -270,7 +270,7 @@ gst_zbar_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
size = GST_BUFFER_SIZE (outbuf); size = GST_BUFFER_SIZE (outbuf);
image = zbar_image_create (); image = zbar_image_create ();
zbar_image_set_format (image, *(gint *) "Y800"); zbar_image_set_format (image, GST_MAKE_FOURCC ('Y', '8', '0', '0'));
zbar_image_set_size (image, zbar->width, zbar->height); zbar_image_set_size (image, zbar->width, zbar->height);
zbar_image_set_data (image, (gpointer) data, zbar->width * zbar->height, zbar_image_set_data (image, (gpointer) data, zbar->width * zbar->height,
NULL); NULL);