mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
Don't require Gtk# patch from bug #501685
This commit is contained in:
parent
1242478731
commit
0164337fa8
3 changed files with 13 additions and 7 deletions
1
README
1
README
|
@ -1,7 +1,6 @@
|
|||
To build this Gtk# from trunk is required and the following patches:
|
||||
|
||||
http://bugzilla.novell.com/show_bug.cgi?id=323372
|
||||
http://bugzilla.novell.com/show_bug.cgi?id=501685
|
||||
http://bugzilla.novell.com/show_bug.cgi?id=497667
|
||||
http://bugzilla.novell.com/show_bug.cgi?id=503048
|
||||
http://bugzilla.novell.com/show_bug.cgi?id=503060
|
||||
|
|
|
@ -89,9 +89,12 @@ namespace Gst.Interfaces {
|
|||
GCHandle gch = (GCHandle) data;
|
||||
ColorBalanceAdapter adapter = gch.Target as ColorBalanceAdapter;
|
||||
|
||||
PropertyInfo pi = adapter.Type.GetProperty ("BalanceType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
|
||||
ColorBalanceImplementor implementor = adapter.Implementor;
|
||||
if (implementor != null) {
|
||||
PropertyInfo pi = implementor.GetType().GetProperty ("BalanceType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
|
||||
if (pi != null && pi.PropertyType == typeof (Gst.Interfaces.ColorBalanceType))
|
||||
native_iface.BalanceType = (Gst.Interfaces.ColorBalanceType) pi.GetValue (null, null);
|
||||
}
|
||||
|
||||
Marshal.StructureToPtr (native_iface, ifaceptr, false);
|
||||
gch.Free ();
|
||||
|
|
|
@ -189,9 +189,13 @@ namespace Gst.Interfaces {
|
|||
|
||||
GCHandle gch = (GCHandle) data;
|
||||
MixerAdapter adapter = gch.Target as MixerAdapter;
|
||||
PropertyInfo pi = adapter.Type.GetProperty ("MixerType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
|
||||
MixerImplementor implementor = adapter.Implementor;
|
||||
|
||||
if (implementor != null) {
|
||||
PropertyInfo pi = implementor.GetType().GetProperty ("MixerType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
|
||||
if (pi != null && pi.PropertyType == typeof (Gst.Interfaces.MixerType))
|
||||
native_iface.MixerType = (Gst.Interfaces.MixerType) pi.GetValue (null, null);
|
||||
}
|
||||
|
||||
Marshal.StructureToPtr (native_iface, ifaceptr, false);
|
||||
gch.Free ();
|
||||
|
|
Loading…
Reference in a new issue