mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
Initialize the GLib.Value for the property to set
This commit is contained in:
parent
08ea583412
commit
817c83f7f0
2 changed files with 4 additions and 3 deletions
|
@ -127,7 +127,6 @@ namespace Gst {
|
|||
}
|
||||
|
||||
g_type_class_unref (class_ptr);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,6 +198,5 @@ namespace Gst {
|
|||
|
||||
g_type_class_unref (class_ptr);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,10 @@ public object this[string property] {
|
|||
return GetProperty (property).Val;
|
||||
}
|
||||
set {
|
||||
SetProperty (property, new GLib.Value (value));
|
||||
GLib.Value v = new GLib.Value (this, property);
|
||||
v.Val = value;
|
||||
SetProperty (property, v);
|
||||
v.Dispose ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue