gst: Fix override of pad probes

Fixes bug #650986.
This commit is contained in:
Andoni Morales Alastruey 2011-05-24 19:20:44 +02:00 committed by Sebastian Dröge
parent ae713781ca
commit d4eb9e9bf9

View file

@ -904,6 +904,9 @@ _wrap_gst_pad_add_data_probe(PyGObject *self, PyObject *args)
if (rv) {
GST_PAD_DO_BUFFER_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);
@ -957,12 +960,11 @@ _wrap_gst_pad_add_event_probe(PyGObject *self, PyObject *args)
GST_OBJECT_LOCK (pad);
rv = PyObject_CallObject(method, myargs);
if (rv)
if (rv) {
GST_PAD_DO_EVENT_SIGNALS (pad)++;
GST_PAD_DO_BUFFER_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_DEBUG_OBJECT (pad, "adding event probe, now %d probes",
GST_PAD_DO_EVENT_SIGNALS (pad));
}
GST_OBJECT_UNLOCK (pad);
Py_DECREF(myargs);
@ -1014,8 +1016,11 @@ _wrap_gst_pad_add_buffer_probe(PyGObject *self, PyObject *args)
GST_OBJECT_LOCK (pad);
rv = PyObject_CallObject(method, myargs);
if (rv)
if (rv) {
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);