summaryrefslogtreecommitdiff
path: root/sources/generated/Gst/Parse.cs
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2019-04-19 02:00:33 +0100
committerTim-Philipp Müller <tim@centricular.com>2019-04-19 02:00:33 +0100
commit6ad219d5f9571621cf78643c854717170027cbec (patch)
treed7bd5fd8f8ea78669b6b832681147c071b485fa5 /sources/generated/Gst/Parse.cs
parentcf3b88ae89c996c3b6cf799a31bab7d7eae599c7 (diff)
Release 1.16.01.16.0
Diffstat (limited to 'sources/generated/Gst/Parse.cs')
-rw-r--r--sources/generated/Gst/Parse.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/sources/generated/Gst/Parse.cs b/sources/generated/Gst/Parse.cs
index b115b7b..51a6d11 100644
--- a/sources/generated/Gst/Parse.cs
+++ b/sources/generated/Gst/Parse.cs
@@ -85,15 +85,11 @@ namespace Gst {
int cnt_argv = argv == null ? 0 : argv.Length;
IntPtr[] native_argv = new IntPtr [cnt_argv + 1];
for (int i = 0; i < cnt_argv; i++)
- native_argv [i] = GLib.Marshaller.StringToPtrGStrdup (argv[i]);
+ native_argv [i] = GLib.Marshaller.StringToPtrGStrdup(argv[i]);
native_argv [cnt_argv] = IntPtr.Zero;
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = gst_parse_launchv(native_argv, out error);
Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element;
- for (int i = 0; i < native_argv.Length - 1; i++) {
- argv [i] = GLib.Marshaller.Utf8PtrToString (native_argv[i]);
- GLib.Marshaller.Free (native_argv[i]);
- }
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
@@ -105,15 +101,11 @@ namespace Gst {
int cnt_argv = argv == null ? 0 : argv.Length;
IntPtr[] native_argv = new IntPtr [cnt_argv + 1];
for (int i = 0; i < cnt_argv; i++)
- native_argv [i] = GLib.Marshaller.StringToPtrGStrdup (argv[i]);
+ native_argv [i] = GLib.Marshaller.StringToPtrGStrdup(argv[i]);
native_argv [cnt_argv] = IntPtr.Zero;
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = gst_parse_launchv_full(native_argv, context == null ? IntPtr.Zero : context.Handle, (int) flags, out error);
Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element;
- for (int i = 0; i < native_argv.Length - 1; i++) {
- argv [i] = GLib.Marshaller.Utf8PtrToString (native_argv[i]);
- GLib.Marshaller.Free (native_argv[i]);
- }
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}