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:
Andrés G. Aragoneses 2013-10-12 19:09:42 +02:00 committed by Stephan Sundermann
parent 538984349d
commit 2bd2b1d7af

View file

@ -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);
}