summaryrefslogtreecommitdiff
path: root/src/libwebpmux.vapi
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-10-08 07:29:21 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-10-08 07:29:21 +0200
commitddd56c71512f618e516d7f1060db7d36dc70b944 (patch)
tree9830417574b4c8b15447992072baa2b77195a55a /src/libwebpmux.vapi
parentd3b3513c5f264d5d9b61f036e40fba818d2279c5 (diff)
parent05cb1275dfd46886ca7826344e10502dc9562b72 (diff)
Merge branch 'release/debian/3.34.1-1'debian/3.34.1-1
Diffstat (limited to 'src/libwebpmux.vapi')
-rw-r--r--src/libwebpmux.vapi8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libwebpmux.vapi b/src/libwebpmux.vapi
index f2461a2..42d2886 100644
--- a/src/libwebpmux.vapi
+++ b/src/libwebpmux.vapi
@@ -61,9 +61,7 @@ namespace WebP
[CCode (cname = "vala_set_image")]
public MuxError set_image (uint8[] bitstream, bool copy_data)
{
- Data data;
- data.bytes = bitstream;
- data.size = bitstream.length;
+ Data data = { bitstream, bitstream.length };
return _set_image (data, copy_data);
}
@@ -89,9 +87,7 @@ namespace WebP
public MuxError set_chunk (string fourcc, uint8[] chunk_data, bool copy_data)
requires (fourcc.length == 4)
{
- Data data;
- data.bytes = chunk_data;
- data.size = chunk_data.length;
+ Data data = { chunk_data ,chunk_data.length };
return _set_chunk ((uchar[]) fourcc, data, copy_data);
}