mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
gst/pygstiterator.c: Printf format fix.
Original commit message from CVS: * gst/pygstiterator.c: (pygst_iterator_new): Printf format fix.
This commit is contained in:
parent
c79185a013
commit
f49c8781e9
3 changed files with 105 additions and 100 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-10-05 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/pygstiterator.c: (pygst_iterator_new):
|
||||
Printf format fix.
|
||||
|
||||
2006-10-03 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* codegen/argtypes.py:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 9991f6fa61ee11475c390dd6675ef7952f079e43
|
||||
Subproject commit a4af1b8542911352e29d53fba47e2c3d7231ebdb
|
|
@ -37,8 +37,7 @@ pygst_iterator_iter_next(PyGstIterator *self)
|
|||
GstIteratorResult result;
|
||||
|
||||
result = gst_iterator_next (self->iter, &element);
|
||||
switch (result)
|
||||
{
|
||||
switch (result) {
|
||||
case GST_ITERATOR_DONE:
|
||||
PyErr_SetNone (PyExc_StopIteration);
|
||||
break;
|
||||
|
@ -51,6 +50,7 @@ pygst_iterator_iter_next(PyGstIterator *self)
|
|||
gst_mini_object_unref (element);
|
||||
} else {
|
||||
const gchar *type_name;
|
||||
|
||||
type_name = g_type_name (self->iter->type);
|
||||
PyErr_Format (PyExc_TypeError, "Unsupported child type: %s",
|
||||
type_name ? type_name : "unknown");
|
||||
|
@ -146,7 +146,7 @@ pygst_iterator_new(GstIterator *iter)
|
|||
|
||||
self = PyObject_NEW (PyGstIterator, &PyGstIterator_Type);
|
||||
self->iter = iter;
|
||||
GST_DEBUG("self:%p , iterator:%p, type:%d",
|
||||
GST_DEBUG ("self:%p , iterator:%p, type:%lu",
|
||||
self, self->iter, self->iter->type);
|
||||
return (PyObject *) self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue