mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
DynamicSignal: use NativeType property instead of doing unsafe pointer trickery
(which doesn't work with MS csc) https://bugzilla.gnome.org/show_bug.cgi?id=788132
This commit is contained in:
parent
d759ec9310
commit
cdb4a5b84b
1 changed files with 3 additions and 7 deletions
|
@ -329,12 +329,8 @@ namespace Gst
|
||||||
public static object Emit (GLib.Object o, string name, params object[] parameters)
|
public static object Emit (GLib.Object o, string name, params object[] parameters)
|
||||||
{
|
{
|
||||||
SignalQuery query;
|
SignalQuery query;
|
||||||
IntPtr type;
|
GType gtype = o.NativeType;
|
||||||
unsafe {
|
IntPtr type = gtype.Val;
|
||||||
// GType is the first field of GTypeInstance->g_class
|
|
||||||
type = (*(IntPtr*) ((GLib.Object.GTypeInstance*) o.Handle)->g_class);
|
|
||||||
}
|
|
||||||
GType gtype = new GType (type);
|
|
||||||
string signal_name, signal_detail;
|
string signal_name, signal_detail;
|
||||||
uint signal_detail_quark = 0;
|
uint signal_detail_quark = 0;
|
||||||
int colon;
|
int colon;
|
||||||
|
|
Loading…
Reference in a new issue