mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
but use python: category for debugging from python code
Original commit message from CVS: but use python: category for debugging from python code
This commit is contained in:
parent
2e6f967f32
commit
39ce373955
1 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ PyObject *PyGstExc_LinkError = NULL;
|
|||
PyObject *PyGstExc_AddError = NULL;
|
||||
PyObject *PyGstExc_RemoveError = NULL;
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (python_debug);
|
||||
GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
|
||||
#define GST_CAT_DEFAULT pygst_debug
|
||||
|
||||
|
@ -244,7 +245,7 @@ pygst_debug_log (PyObject *pyobject, PyObject *string, GstDebugLevel level,
|
|||
/* gst_debug_log : category, level, file, function, line, object, format, va_list */
|
||||
if (isgstobject)
|
||||
object = G_OBJECT (pygobject_get (pyobject));
|
||||
gst_debug_log (GST_CAT_DEFAULT, level, filename, function, lineno, object, "%s", str);
|
||||
gst_debug_log (python_debug, level, filename, function, lineno, object, "%s", str);
|
||||
if (filename)
|
||||
g_free(filename);
|
||||
Py_INCREF (Py_None);
|
||||
|
|
Loading…
Reference in a new issue