diff --git a/gstreamer-sharp/Structure.custom b/gstreamer-sharp/Structure.custom index a773b304ab..ad635592bc 100644 --- a/gstreamer-sharp/Structure.custom +++ b/gstreamer-sharp/Structure.custom @@ -168,6 +168,9 @@ public void Set (params object[] fields) { throw new ArgumentException (); for (i = 0; i < length; i += 2) { + if (fields[i].GetType () != typeof (string)) + throw new ArgumentException (); + SetValue (fields[i] as string, new GLib.Value (fields[i+1])); } }