gst/gstmessage.override: wrapped gst_message_parse_segment_start() and gst_message_parse_segment_done()

Original commit message from CVS:
* gst/gstmessage.override:
wrapped gst_message_parse_segment_start() and
gst_message_parse_segment_done()
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe  la douceur
D'aller l-bas vivre ensemble !
Aimer  loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouills
De ces ciels brouills
Pour mon esprit ont les charmes
Si mystrieux
De tes tratres yeux,
Brillant  travers leurs larmes.
The rest at the next defs update :)
This commit is contained in:
Edward Hervey 2005-07-21 12:03:23 +00:00
parent a7a9df2c86
commit 9fd8f61cb1
2 changed files with 42 additions and 0 deletions

View file

@ -1,5 +1,9 @@
2005-07-21 Edward Hervey <edward@fluendo.com>
* gst/gstmessage.override:
wrapped gst_message_parse_segment_start() and
gst_message_parse_segment_done()
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :

View file

@ -42,6 +42,44 @@ _wrap_gst_message_parse_state_changed (PyGstMiniObject *self)
return ret;
}
%%
override gst_message_parse_segment_start noargs
static PyObject *
_wrap_gst_message_parse_segment_start (PyGstMiniObject *self)
{
GstClockTime timestart;
PyObject *ret;
/* Should raise an exception if it's not a segment start message */
if (GST_MESSAGE(self->obj)->type != GST_MESSAGE_SEGMENT_START) {
PyErr_SetString(PyExc_TypeError, "Message is not a segment start message");
return NULL;
}
gst_message_parse_segment_start (GST_MESSAGE(self->obj), &timestart);
/* Return this as a tuple */
ret = PyLong_FromUnsignedLongLong(timestart);
return ret;
}
%%
override gst_message_parse_segment_done noargs
static PyObject *
_wrap_gst_message_parse_segment_done (PyGstMiniObject *self)
{
GstClockTime timestart;
PyObject *ret;
/* Should raise an exception if it's not a segment start message */
if (GST_MESSAGE(self->obj)->type != GST_MESSAGE_SEGMENT_DONE) {
PyErr_SetString(PyExc_TypeError, "Message is not a segment done message");
return NULL;
}
gst_message_parse_segment_done (GST_MESSAGE(self->obj), &timestart);
/* Return this as a tuple */
ret = PyLong_FromUnsignedLongLong(timestart);
return ret;
}
%%
override gst_message_parse_error noargs
static PyObject *
_wrap_gst_message_parse_error (PyGstMiniObject *self)