diff --git a/gi/overrides/Gst.py b/gi/overrides/Gst.py index 9ee608143e..d1f9a409dd 100644 --- a/gi/overrides/Gst.py +++ b/gi/overrides/Gst.py @@ -330,6 +330,7 @@ _gi_gst # maybe more python and less C some day if core turns a bit more introspection # and binding friendly in the debug area +Gst.trace = _gi_gst.trace Gst.log = _gi_gst.log Gst.debug = _gi_gst.debug Gst.info = _gi_gst.info diff --git a/gi/overrides/gstmodule.c b/gi/overrides/gstmodule.c index 6f9a14bf3c..c31d34ec69 100644 --- a/gi/overrides/gstmodule.c +++ b/gi/overrides/gstmodule.c @@ -286,6 +286,12 @@ pygst_debug_log (PyObject * pyobject, PyObject * string, GstDebugLevel level, return Py_None; } +static PyObject * +_wrap_gst_trace (PyObject * whatever, PyObject * string) +{ + return pygst_debug_log (whatever, string, GST_LEVEL_TRACE, FALSE); +} + static PyObject * _wrap_gst_log (PyObject * whatever, PyObject * string) { @@ -329,6 +335,8 @@ _wrap_gst_memdump (PyObject * whatever, PyObject * string) } static PyMethodDef _gi_gst_functions[] = { + {"trace", (PyCFunction) _wrap_gst_trace, METH_VARARGS, + NULL}, {"log", (PyCFunction) _wrap_gst_log, METH_VARARGS, NULL}, {"debug", (PyCFunction) _wrap_gst_debug, METH_VARARGS,