mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
Gst.Object: fix creation of GValues for property setter in custom code
The GValue needs to hold the type of the value, it's not related to "this" or "property".
This commit is contained in:
parent
538984349d
commit
2bd2b1d7af
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ namespace Gst {
|
|||
throw new PropertyNotFoundException ();
|
||||
} set {
|
||||
if (PropertyExists (property)) {
|
||||
using (GLib.Value v = new GLib.Value (this, property)) {
|
||||
using (GLib.Value v = new GLib.Value ((GLib.GType)value.GetType ())) {
|
||||
v.Val = value;
|
||||
SetProperty (property, v);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue