mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
parent
ae713781ca
commit
d4eb9e9bf9
1 changed files with 11 additions and 6 deletions
|
@ -904,6 +904,9 @@ _wrap_gst_pad_add_data_probe(PyGObject *self, PyObject *args)
|
||||||
if (rv) {
|
if (rv) {
|
||||||
GST_PAD_DO_BUFFER_SIGNALS (pad)++;
|
GST_PAD_DO_BUFFER_SIGNALS (pad)++;
|
||||||
GST_PAD_DO_EVENT_SIGNALS (pad)++;
|
GST_PAD_DO_EVENT_SIGNALS (pad)++;
|
||||||
|
GST_DEBUG_OBJECT (pad, "adding data probe, now %d buffer probes "
|
||||||
|
"and %d event probes", GST_PAD_DO_BUFFER_SIGNALS (pad),
|
||||||
|
GST_PAD_DO_EVENT_SIGNALS (pad));
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (pad);
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
@ -957,12 +960,11 @@ _wrap_gst_pad_add_event_probe(PyGObject *self, PyObject *args)
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
|
|
||||||
rv = PyObject_CallObject(method, myargs);
|
rv = PyObject_CallObject(method, myargs);
|
||||||
if (rv)
|
if (rv) {
|
||||||
GST_PAD_DO_EVENT_SIGNALS (pad)++;
|
GST_PAD_DO_EVENT_SIGNALS (pad)++;
|
||||||
|
GST_DEBUG_OBJECT (pad, "adding event probe, now %d probes",
|
||||||
GST_PAD_DO_BUFFER_SIGNALS (pad)++;
|
GST_PAD_DO_EVENT_SIGNALS (pad));
|
||||||
GST_DEBUG ("adding event probe to pad %s:%s, now %d probes",
|
}
|
||||||
GST_DEBUG_PAD_NAME (pad), GST_PAD_DO_BUFFER_SIGNALS (pad));
|
|
||||||
GST_OBJECT_UNLOCK (pad);
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
Py_DECREF(myargs);
|
Py_DECREF(myargs);
|
||||||
|
@ -1014,8 +1016,11 @@ _wrap_gst_pad_add_buffer_probe(PyGObject *self, PyObject *args)
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
|
|
||||||
rv = PyObject_CallObject(method, myargs);
|
rv = PyObject_CallObject(method, myargs);
|
||||||
if (rv)
|
if (rv) {
|
||||||
GST_PAD_DO_BUFFER_SIGNALS (pad)++;
|
GST_PAD_DO_BUFFER_SIGNALS (pad)++;
|
||||||
|
GST_DEBUG_OBJECT (pad, "adding buffer probe, now %d probes",
|
||||||
|
GST_PAD_DO_BUFFER_SIGNALS (pad));
|
||||||
|
}
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (pad);
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue