Open chfritz opened 1 year ago
I've been trying to find the typing annotations for that function but couldn't find them, Gst is a particular module.
I'm not sure if the annotations are wrong or if we should be allowing null
in general for pointer types, but if it's the later then we'll need to update the conversion functions to accept null pointers:
But I don't have enough time to implement the changes myself these days. PR welcome.
I've found in various situations the need to pass
NULL
as a parameter but wasn't able to create it, e.g., to call https://gstreamer.freedesktop.org/documentation/webrtc/index.html?gi-language=javascript#webrtcbin::get-stats with a NULL pad. I've triednull
but get:If I try
new Gst.Pad(null)
instead I get:So for some reason
null
in JS is not translated toNULL
in C.What's the correct way to set a parameter when the C documentation of the gtk method requires
NULL
?Minimal example:
(Move here from https://github.com/romgrk/node-gtk/issues/11#issuecomment-1442400894.)