mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 03:16:33 +00:00
aa7bb8fa1c
glib-sharp will only get a new release with the new API that we need for 3.0 in a year or something. Instead of waiting a year before we can release something we now have our own internal copy of glib-sharp trunk that will be dropped once glib-sharp 3.0 is released. Everything is now compilable and working without any additional patches.
14 lines
425 B
Text
14 lines
425 B
Text
public ColorBalanceChannel (string label, int min, int max) : this () {
|
|
unsafe {
|
|
int* raw_ptr = (int*) ( ( (byte*) Handle) + max_value_offset);
|
|
*raw_ptr = max;
|
|
}
|
|
unsafe {
|
|
IntPtr* raw_ptr = (IntPtr*) ( ( (byte*) Handle) + label_offset);
|
|
*raw_ptr = Gst.GLib.Marshaller.StringToPtrGStrdup (label);
|
|
}
|
|
unsafe {
|
|
int* raw_ptr = (int*) ( ( (byte*) Handle) + min_value_offset);
|
|
*raw_ptr = min;
|
|
}
|
|
}
|