mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
Fix dynamic signals on 64 bit architectures
sizeof(GClosure) is 32 on 64 bit
This commit is contained in:
parent
ba8f8562b5
commit
10b4f125d0
1 changed files with 2 additions and 1 deletions
|
@ -93,7 +93,8 @@ namespace GLib {
|
||||||
si.RegisteredHandler = newHandler;
|
si.RegisteredHandler = newHandler;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
IntPtr closure = g_closure_new_simple(16, IntPtr.Zero);
|
/* We use 32 as this is correct for 32 bit and 64 bit architectures */
|
||||||
|
IntPtr closure = g_closure_new_simple(32, IntPtr.Zero);
|
||||||
g_closure_set_meta_marshal(closure, (IntPtr) GCHandle.Alloc(k), marshalHandler);
|
g_closure_set_meta_marshal(closure, (IntPtr) GCHandle.Alloc(k), marshalHandler);
|
||||||
uint signalId = g_signal_connect_closure(o.Handle, name, closure, after);
|
uint signalId = g_signal_connect_closure(o.Handle, name, closure, after);
|
||||||
SignalHandlers.Add(k, new SignalInfo(signalId, closure, handler));
|
SignalHandlers.Add(k, new SignalInfo(signalId, closure, handler));
|
||||||
|
|
Loading…
Reference in a new issue