[vala/0.26] gstreamer-1.0: fix MapInfo.data array length
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.26] gstreamer-1.0: fix MapInfo.data array length
- Date: Sat, 20 Dec 2014 15:00:23 +0000 (UTC)
commit 22126ebad3b2133db39bcf301c29c8b78b440f1a
Author: Evan Nemerson <evan nemerson com>
Date: Mon Nov 10 11:09:09 2014 -0800
gstreamer-1.0: fix MapInfo.data array length
(cherry picked from commit 3092537db65887e24a3d3e87a27caf9c5295e4f7)
vapi/gstreamer-1.0.vapi | 2 +-
vapi/metadata/Gst-1.0.metadata | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 92909bd..2f3dfeb 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -2202,7 +2202,7 @@ namespace Gst {
public struct MapInfo {
public weak Gst.Memory memory;
public Gst.MapFlags flags;
- [CCode (array_length = false, array_null_terminated = true)]
+ [CCode (array_length_cname = "size", array_length_type = "gsize")]
public weak uint8[] data;
public size_t size;
public size_t maxsize;
diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata
index ff7fb28..edac546 100644
--- a/vapi/metadata/Gst-1.0.metadata
+++ b/vapi/metadata/Gst-1.0.metadata
@@ -165,6 +165,10 @@ parse_launch_full.flags default=Gst.ParseFlags.NONE
parse_launchv_full.context default=null
parse_launchv_full.flags default=Gst.ParseFlags.NONE
+// Field array lengths (bug #678663)
+MapInfo
+ .data array_length_field="size"
+
// Delegates without targets
tag_register skip=false
tag_register_static skip=false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]