mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst/gstmodule.c: gst.gst_version uses the result of gst_version() rather than use the GST_VERSION_* hardcoded values.
Original commit message from CVS: reviewed by: Edward Hervey <edward@fluendo.com> * gst/gstmodule.c: (init_gst): gst.gst_version uses the result of gst_version() rather than use the GST_VERSION_* hardcoded values. Closes #331616
This commit is contained in:
parent
54686622a1
commit
37e88dd9f6
3 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-02-22 Joe Wreschnig <piman@sacredchao.net>
|
||||
|
||||
reviewed by: Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gstmodule.c: (init_gst):
|
||||
gst.gst_version uses the result of gst_version() rather than use
|
||||
the GST_VERSION_* hardcoded values.
|
||||
Closes #331616
|
||||
|
||||
2006-02-20 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* examples/vumeter.py:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit c30611ac38336030fed6d258c6e558cc537adbc5
|
||||
Subproject commit c09cd18d328f740ac532377fa5605b0f712cc6fd
|
|
@ -103,6 +103,7 @@ init_gst (void)
|
|||
PyObject *m, *d;
|
||||
PyObject *av, *tuple;
|
||||
int argc, i;
|
||||
guint major, minor, micro, nano;
|
||||
char **argv;
|
||||
GError *error = NULL;
|
||||
|
||||
|
@ -157,9 +158,9 @@ init_gst (void)
|
|||
m = Py_InitModule ("_gst", pygst_functions);
|
||||
d = PyModule_GetDict (m);
|
||||
|
||||
/* gst+ version */
|
||||
tuple = Py_BuildValue ("(iii)", GST_VERSION_MAJOR, GST_VERSION_MINOR,
|
||||
GST_VERSION_MICRO);
|
||||
/* gst version */
|
||||
gst_version(&major, &minor, µ, &nano);
|
||||
tuple = Py_BuildValue("(iii)", major, minor, micro);
|
||||
PyDict_SetItemString(d, "gst_version", tuple);
|
||||
Py_DECREF(tuple);
|
||||
|
||||
|
|
Loading…
Reference in a new issue