mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 17:31:10 +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_AddError = NULL;
|
||||||
PyObject *PyGstExc_RemoveError = NULL;
|
PyObject *PyGstExc_RemoveError = NULL;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (python_debug);
|
||||||
GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
|
GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
|
||||||
#define GST_CAT_DEFAULT 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 */
|
/* gst_debug_log : category, level, file, function, line, object, format, va_list */
|
||||||
if (isgstobject)
|
if (isgstobject)
|
||||||
object = G_OBJECT (pygobject_get (pyobject));
|
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)
|
if (filename)
|
||||||
g_free(filename);
|
g_free(filename);
|
||||||
Py_INCREF (Py_None);
|
Py_INCREF (Py_None);
|
||||||
|
|
Loading…
Reference in a new issue