mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
zbar: use GST_MAKE_FOURCC to create FOURCC
This commit is contained in:
parent
d68c2d4ab9
commit
0bd4d4e27b
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ gst_zbar_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
|
|||
size = GST_BUFFER_SIZE (outbuf);
|
||||
|
||||
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_data (image, (gpointer) data, zbar->width * zbar->height,
|
||||
NULL);
|
||||
|
|
Loading…
Reference in a new issue