mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
Object: Fixed compilation on .NET
Using variables cannot be modified in .NET but can be in mono so switch to a good old Dispose call here. https://bugzilla.xamarin.com/show_bug.cgi?id=15832#c0
This commit is contained in:
parent
6d4fbd5ff1
commit
9ea7669e86
1 changed files with 4 additions and 4 deletions
|
@ -61,10 +61,10 @@ namespace Gst {
|
|||
if (gtype == null) {
|
||||
throw new Exception ("Could not find a GType for type " + type.FullName);
|
||||
}
|
||||
using (GLib.Value v = new GLib.Value ((GLib.GType)value.GetType ())) {
|
||||
v.Val = value;
|
||||
SetProperty (property, v);
|
||||
}
|
||||
GLib.Value v = new GLib.Value ((GLib.GType)value.GetType ());
|
||||
v.Val = value;
|
||||
SetProperty (property, v);
|
||||
v.Dispose ();
|
||||
} else
|
||||
throw new PropertyNotFoundException ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue