mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
gst/gst.defs: Update for probe removal api gst/gstpad.override (_wrap_gst_pad_remove_data_probe) (_wrap_gst_pad_remov...
Original commit message from CVS: 2005-09-21 Andy Wingo <wingo@pobox.com> * gst/gst.defs: Update for probe removal api * gst/gstpad.override (_wrap_gst_pad_remove_data_probe) (_wrap_gst_pad_remove_event_probe) (_wrap_gst_pad_remove_buffer_probe): Removed, upstream does the right thing now. (_wrap_gst_pad_add_data_probe, _wrap_gst_pad_add_event_probe) (_wrap_gst_pad_add_buffer_probe): Indent.
This commit is contained in:
parent
4a13efde8d
commit
14856cf85c
3 changed files with 32 additions and 103 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2005-09-21 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/gst.defs: Update for probe removal api
|
||||
|
||||
* gst/gstpad.override (_wrap_gst_pad_remove_data_probe)
|
||||
(_wrap_gst_pad_remove_event_probe)
|
||||
(_wrap_gst_pad_remove_buffer_probe): Removed, upstream does the
|
||||
right thing now.
|
||||
(_wrap_gst_pad_add_data_probe, _wrap_gst_pad_add_event_probe)
|
||||
(_wrap_gst_pad_add_buffer_probe): Indent.
|
||||
|
||||
2005-09-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gst.defs:
|
||||
|
|
|
@ -3497,8 +3497,7 @@
|
|||
(c-name "gst_pad_remove_data_probe")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GCallback" "handler")
|
||||
'("gpointer" "data")
|
||||
'("guint" "handler_id")
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -3517,8 +3516,7 @@
|
|||
(c-name "gst_pad_remove_event_probe")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GCallback" "handler")
|
||||
'("gpointer" "data")
|
||||
'("guint" "handler_id")
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -3537,8 +3535,7 @@
|
|||
(c-name "gst_pad_remove_buffer_probe")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GCallback" "handler")
|
||||
'("gpointer" "data")
|
||||
'("guint" "handler_id")
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -677,85 +677,6 @@ _wrap_gst_pad_add_buffer_probe(PyGObject *self, PyObject *args)
|
|||
return PyLong_FromUnsignedLong(sigid);
|
||||
}
|
||||
%%
|
||||
override gst_pad_remove_data_probe kwargs
|
||||
static PyObject *
|
||||
_wrap_gst_pad_remove_data_probe(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
static char *kwlist[] = { "signalid", NULL };
|
||||
gulong signalid;
|
||||
GstPad *pad = GST_PAD (self->obj);
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
"k:GstPad.remove_data_probe",
|
||||
kwlist, &signalid))
|
||||
return NULL;
|
||||
GST_LOCK (pad);
|
||||
if (!g_signal_handler_is_connected ((gpointer) pad, signalid)) {
|
||||
GST_UNLOCK (pad);
|
||||
Py_INCREF (Py_False);
|
||||
return Py_False;
|
||||
}
|
||||
g_signal_handler_disconnect ((gpointer) pad, signalid);
|
||||
GST_PAD_DO_BUFFER_SIGNALS (pad) -= 1;
|
||||
GST_PAD_DO_EVENT_SIGNALS (pad) -= 1;
|
||||
|
||||
GST_UNLOCK (pad);
|
||||
Py_INCREF (Py_True);
|
||||
return Py_True;
|
||||
}
|
||||
%%
|
||||
override gst_pad_remove_event_probe kwargs
|
||||
static PyObject *
|
||||
_wrap_gst_pad_remove_event_probe(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
static char *kwlist[] = { "signalid", NULL };
|
||||
gulong signalid;
|
||||
GstPad *pad = GST_PAD (self->obj);
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
"k:GstPad.remove_event_probe",
|
||||
kwlist, &signalid))
|
||||
return NULL;
|
||||
GST_LOCK (pad);
|
||||
if (!g_signal_handler_is_connected ((gpointer) pad, signalid)) {
|
||||
GST_UNLOCK (pad);
|
||||
Py_INCREF (Py_False);
|
||||
return Py_False;
|
||||
}
|
||||
g_signal_handler_disconnect ((gpointer) pad, signalid);
|
||||
GST_PAD_DO_EVENT_SIGNALS (pad) -= 1;
|
||||
|
||||
GST_UNLOCK (pad);
|
||||
Py_INCREF (Py_True);
|
||||
return Py_True;
|
||||
}
|
||||
%%
|
||||
override gst_pad_remove_buffer_probe kwargs
|
||||
static PyObject *
|
||||
_wrap_gst_pad_remove_buffer_probe(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
static char *kwlist[] = { "signalid", NULL };
|
||||
gulong signalid;
|
||||
GstPad *pad = GST_PAD (self->obj);
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
"k:GstPad.remove_buffer_probe",
|
||||
kwlist, &signalid))
|
||||
return NULL;
|
||||
GST_LOCK (pad);
|
||||
if (!g_signal_handler_is_connected ((gpointer) pad, signalid)) {
|
||||
GST_UNLOCK (pad);
|
||||
Py_INCREF (Py_False);
|
||||
return Py_False;
|
||||
}
|
||||
g_signal_handler_disconnect ((gpointer) pad, signalid);
|
||||
GST_PAD_DO_BUFFER_SIGNALS (pad) -= 1;
|
||||
|
||||
GST_UNLOCK (pad);
|
||||
Py_INCREF (Py_True);
|
||||
return Py_True;
|
||||
}
|
||||
%%
|
||||
override-slot GstPadTemplate.tp_getattr
|
||||
#define IS_ATTR(name) (strcmp (name, attr) == 0)
|
||||
PyObject *
|
||||
|
|
Loading…
Reference in a new issue