mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
gst: run gst-indent all C files
We hadn't done it since the switch to git... whoops
This commit is contained in:
parent
ee647847f3
commit
ab46967800
9 changed files with 505 additions and 499 deletions
|
@ -63,4 +63,3 @@ pygst_caps_from_pyobject (PyObject *object, gboolean *copy)
|
|||
PyErr_SetString (PyExc_TypeError, "could not convert to GstCaps");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,8 @@ exception:
|
|||
}
|
||||
|
||||
static int
|
||||
add_method(PyObject *klass, PyObject *dict, PyMethodDef *method) {
|
||||
add_method (PyObject * klass, PyObject * dict, PyMethodDef * method)
|
||||
{
|
||||
PyObject *module = NULL;
|
||||
PyObject *func = NULL;
|
||||
PyObject *meth = NULL;
|
||||
|
@ -211,7 +212,7 @@ pygst_exceptions_register_classes(PyObject *d)
|
|||
if (dict == NULL)
|
||||
goto exception;
|
||||
|
||||
PyGstExc_PluginNotFoundError = \
|
||||
PyGstExc_PluginNotFoundError =
|
||||
PyErr_NewException ("gst.PluginNotFoundError", PyExc_Exception, dict);
|
||||
if (PyGstExc_PluginNotFoundError == NULL)
|
||||
goto exception;
|
||||
|
@ -233,8 +234,9 @@ pygst_exceptions_register_classes(PyObject *d)
|
|||
if (dict == NULL)
|
||||
goto exception;
|
||||
|
||||
PyGstExc_ElementNotFoundError = \
|
||||
PyErr_NewException("gst.ElementNotFoundError", PyGstExc_PluginNotFoundError, dict);
|
||||
PyGstExc_ElementNotFoundError =
|
||||
PyErr_NewException ("gst.ElementNotFoundError",
|
||||
PyGstExc_PluginNotFoundError, dict);
|
||||
if (PyGstExc_ElementNotFoundError == NULL)
|
||||
goto exception;
|
||||
|
||||
|
|
|
@ -79,14 +79,14 @@ pygstminiobject_lookup_class(GType gtype)
|
|||
*/
|
||||
void
|
||||
pygstminiobject_register_class (PyObject * dict, const gchar * type_name,
|
||||
GType gtype, PyTypeObject *type,
|
||||
PyObject *bases)
|
||||
GType gtype, PyTypeObject * type, PyObject * bases)
|
||||
{
|
||||
PyObject *o;
|
||||
const char *class_name, *s;
|
||||
|
||||
if (!pygstminiobject_class_key)
|
||||
pygstminiobject_class_key = g_quark_from_static_string(pygstminiobject_class_id);
|
||||
pygstminiobject_class_key =
|
||||
g_quark_from_static_string (pygstminiobject_class_id);
|
||||
|
||||
class_name = type->tp_name;
|
||||
s = strrchr (class_name, '.');
|
||||
|
@ -204,8 +204,10 @@ pygstminiobject_dealloc(PyGstMiniObject *self)
|
|||
static int
|
||||
pygstminiobject_compare (PyGstMiniObject * self, PyGstMiniObject * v)
|
||||
{
|
||||
if (self->obj == v->obj) return 0;
|
||||
if (self->obj > v->obj) return -1;
|
||||
if (self->obj == v->obj)
|
||||
return 0;
|
||||
if (self->obj > v->obj)
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -239,7 +241,8 @@ pygstminiobject_free(PyObject *op)
|
|||
/* ---------------- PyGstMiniObject methods ----------------- */
|
||||
|
||||
static int
|
||||
pygstminiobject_init(PyGstMiniObject *self, PyObject *args, PyObject *kwargs)
|
||||
pygstminiobject_init (PyGstMiniObject * self, PyObject * args,
|
||||
PyObject * kwargs)
|
||||
{
|
||||
GType object_type;
|
||||
GstMiniObjectClass *class;
|
||||
|
@ -273,7 +276,8 @@ pygstminiobject_init(PyGstMiniObject *self, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
pygstminiobject__gstminiobject_init__(PyGstMiniObject *self, PyObject *args, PyObject *kwargs)
|
||||
pygstminiobject__gstminiobject_init__ (PyGstMiniObject * self, PyObject * args,
|
||||
PyObject * kwargs)
|
||||
{
|
||||
if (pygstminiobject_init (self, args, kwargs) < 0)
|
||||
return NULL;
|
||||
|
@ -288,9 +292,11 @@ pygstminiobject_copy(PyGstMiniObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef pygstminiobject_methods[] = {
|
||||
{ "__gstminiobject_init__", (PyCFunction)pygstminiobject__gstminiobject_init__,
|
||||
{"__gstminiobject_init__",
|
||||
(PyCFunction) pygstminiobject__gstminiobject_init__,
|
||||
METH_VARARGS | METH_KEYWORDS},
|
||||
{ "copy", (PyCFunction)pygstminiobject_copy, METH_VARARGS, "Copies the miniobject"},
|
||||
{"copy", (PyCFunction) pygstminiobject_copy, METH_VARARGS,
|
||||
"Copies the miniobject"},
|
||||
{NULL, NULL, 0}
|
||||
};
|
||||
|
||||
|
@ -370,4 +376,3 @@ PyTypeObject PyGstMiniObject_Type = {
|
|||
(inquiry) 0, /* tp_is_gc */
|
||||
(PyObject *) 0, /* tp_bases */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue