diff --git a/generate_code.py b/generate_code.py
index 3c36254da9..8a3bc10ea4 100644
--- a/generate_code.py
+++ b/generate_code.py
@@ -55,7 +55,9 @@ if __name__ == "__main__":
'--glue-filename=' + opts.glue_file,
'--gluelib-name=' + opts.glue_libname,
'--glue-includes=' + opts.glue_includes,
- '--assembly-name=' + opts.assembly_name,]
+ '--assembly-name=' + opts.assembly_name,
+ '--all-opaque',
+ ]
if opts.schema:
cmd += ['--schema=' + opts.schema]
diff --git a/sources/gstreamer-sharp.metadata b/sources/gstreamer-sharp.metadata
index af6a41e33d..8249af956f 100644
--- a/sources/gstreamer-sharp.metadata
+++ b/sources/gstreamer-sharp.metadata
@@ -87,10 +87,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
true
guint32*
-
+ true
1
1
+
true
true
@@ -101,6 +102,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
true
true
true
+
@@ -115,12 +117,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+
true
true
true
true
+
+ true
+
1
@@ -275,8 +281,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
gint64
gint64
true
- gpointer
- false
+ true
ref
true