gstreamer-1.0: add bindings for GstInfo logging function
Submitted by Pierre Lamot
Link to original bug (#750834)
Description
Created attachment 305132 patch
add bindings for GstInfo logging function
note that the init function actually assign the pointer. the thing is that it calls a C Macro, GST_DEBUG_CATEGORY_INIT, doing the initialisation and assignment. the _gst_debug_category_new can't be called directly due to a "#pragma GCC poison"
it might be used like this
public class Foo : Gst.Element {
static DebugCategory* dcat = null;
static construct { dcat->init("foo", DebugColorFlags.FG_YELLOW, "foo bar"); }
public void myFunction() { this.warning(dcat, "a warning message for the element"); dcat.warning("a warning message for the debug cate" }
}
Patch 305132, "patch":
0001-gstreamer-1.0-add-bindings-for-GstInfo-logging-funct.patch