mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-21 19:40:15 +00:00
debugging and error improvement
Original commit message from CVS: debugging and error improvement
This commit is contained in:
parent
0ef50e2d9a
commit
b9ba1d81e3
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* -*- Mode: C; c-basic-offset: 4 -*- */
|
/* -*- Mode: C; c-basic-offset: 4 -*-
|
||||||
* vi:si:et:sw=4:sts=4:ts=4
|
* vi:si:et:sw=4:sts=4:ts=4
|
||||||
*
|
*
|
||||||
* gst-python
|
* gst-python
|
||||||
|
@ -91,6 +91,8 @@ bus_func (GstBus *bus, GstMessage *message, gpointer user_data)
|
||||||
|
|
||||||
g_return_val_if_fail (user_data != NULL, TRUE);
|
g_return_val_if_fail (user_data != NULL, TRUE);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (bus, "dispatching message %p", message);
|
||||||
|
|
||||||
state = pyg_gil_state_ensure ();
|
state = pyg_gil_state_ensure ();
|
||||||
|
|
||||||
py_userdata = (PyObject *) user_data;
|
py_userdata = (PyObject *) user_data;
|
||||||
|
@ -138,6 +140,8 @@ bus_func (GstBus *bus, GstMessage *message, gpointer user_data)
|
||||||
|
|
||||||
pyg_gil_state_release (state);
|
pyg_gil_state_release (state);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (bus, "dispatched message %p", message);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +190,7 @@ _wrap_gst_bus_add_watch (PyGObject *self, PyObject *args)
|
||||||
len = PyTuple_Size(args);
|
len = PyTuple_Size(args);
|
||||||
|
|
||||||
if (len < 2) {
|
if (len < 2) {
|
||||||
PyErr_SetString(PyExc_TypeError, "Bus requires at least 2 args");
|
PyErr_SetString(PyExc_TypeError, "Bus.add_watch requires at least 2 args");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
py_events = PySequence_GetItem(args, 0);
|
py_events = PySequence_GetItem(args, 0);
|
||||||
|
|
Loading…
Reference in a new issue