gst/interfaces.*: Apply patch from Zaheer Abbas Merali to implement this method. Not that it's not .list_channels() d...
Original commit message from CVS: * gst/interfaces.defs: * gst/interfaces.override (_wrap_gst_color_balance_list_channels): Apply patch from Zaheer Abbas Merali to implement this method. Not that it's not .list_channels() due to conflict with a method of the same name in the GstTuner interface
This commit is contained in:
parent
ebae649260
commit
5f899b1b02
@ -1,5 +1,11 @@
|
|||||||
2004-11-29 Johan Dahlin <johan@gnome.org>
|
2004-11-29 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
|
* gst/interfaces.defs:
|
||||||
|
* gst/interfaces.override (_wrap_gst_color_balance_list_channels):
|
||||||
|
Apply patch from Zaheer Abbas Merali to implement this method. Not
|
||||||
|
that it's not .list_channels() due to conflict with a method of
|
||||||
|
the same name in the GstTuner interface
|
||||||
|
|
||||||
* gst/gstmodule.c:
|
* gst/gstmodule.c:
|
||||||
* gst/gst.override: Apply patch from Brian Warner to throw a link
|
* gst/gst.override: Apply patch from Brian Warner to throw a link
|
||||||
error when element and pad linking fails.
|
error when element and pad linking fails.
|
||||||
|
@ -8,7 +8,7 @@ dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
|||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
dnl when going to/from release please set the nano (fourth number) right !
|
dnl when going to/from release please set the nano (fourth number) right !
|
||||||
AS_VERSION(gst-python, PYGST_VERSION, 0, 8, 0, 0, GST_CVS="no", GST_CVS="yes")
|
AS_VERSION(gst-python, PYGST_VERSION, 0, 8, 1, 0, GST_CVS="no", GST_CVS="yes")
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
(return-type "GType")
|
(return-type "GType")
|
||||||
)
|
)
|
||||||
|
|
||||||
(define-method list_channels
|
(define-method list_colorbalance_channels
|
||||||
(of-object "GstColorBalance")
|
(of-object "GstColorBalance")
|
||||||
(c-name "gst_color_balance_list_channels")
|
(c-name "gst_color_balance_list_channels")
|
||||||
(return-type "const-GList*")
|
(return-type "const-GList*")
|
||||||
@ -478,6 +478,11 @@
|
|||||||
(parent "GstObject")
|
(parent "GstObject")
|
||||||
(c-name "GstColorBalanceChannel")
|
(c-name "GstColorBalanceChannel")
|
||||||
(gtype-id "GST_TYPE_COLOR_BALANCE_CHANNEL")
|
(gtype-id "GST_TYPE_COLOR_BALANCE_CHANNEL")
|
||||||
|
(fields
|
||||||
|
'("gchar*" "label")
|
||||||
|
'("gint" "min_value")
|
||||||
|
'("gint" "max_value")
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(define-interface Mixer
|
(define-interface Mixer
|
||||||
|
@ -125,3 +125,23 @@ _wrap_gst_mixer_list_tracks(PyGObject *self)
|
|||||||
|
|
||||||
return py_list;
|
return py_list;
|
||||||
}
|
}
|
||||||
|
%%
|
||||||
|
override gst_color_balance_list_channels noargs
|
||||||
|
static PyObject *
|
||||||
|
_wrap_gst_color_balance_list_channels(PyGObject *self)
|
||||||
|
{
|
||||||
|
const GList *l, *list;
|
||||||
|
PyObject *py_list;
|
||||||
|
|
||||||
|
list = gst_color_balance_list_channels(GST_COLOR_BALANCE(self->obj));
|
||||||
|
|
||||||
|
py_list = PyList_New(0);
|
||||||
|
for (l = list; l; l = l->next) {
|
||||||
|
GstColorBalanceChannel *channel = (GstColorBalanceChannel*)l->data;
|
||||||
|
PyObject *py_channel = pygobject_new(G_OBJECT(channel));
|
||||||
|
PyList_Append(py_list, py_channel);
|
||||||
|
Py_DECREF(py_channel);
|
||||||
|
}
|
||||||
|
|
||||||
|
return py_list;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user