summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy.green@datapath.co.uk <andy.green@datapath.co.uk>2018-06-05 10:56:00 +0000
committerThibault Saunier <tsaunier@igalia.com>2018-06-05 09:48:36 -0400
commit10f0476c9fd0bcb94062ca4776d87d9857747dd0 (patch)
tree86b6afec1e61bec58cf04d5ca16d202bf0f8f0ff
parenta4223fcb421a324864704681c5e60866d3e3e4c9 (diff)
Fix for pointer arithmetic error in DynamicSignal.cs
Marshal.ReadIntPtr offset property is in byte. https://bugzilla.gnome.org/show_bug.cgi?id=796497
-rw-r--r--sources/custom/DynamicSignal.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/custom/DynamicSignal.cs b/sources/custom/DynamicSignal.cs
index b7a9458..86d045e 100644
--- a/sources/custom/DynamicSignal.cs
+++ b/sources/custom/DynamicSignal.cs
@@ -383,7 +383,7 @@ namespace Gst
query.param_types = new Type[q.n_params];
for (int i = 0; i < query.n_params; i++) {
- IntPtr t = Marshal.ReadIntPtr (q.param_types, i);
+ IntPtr t = Marshal.ReadIntPtr (q.param_types, i * IntPtr.Size);
GType g = new GType (t);
query.param_types [i] = (Type)g;