gst/gst.override: Take either int or longs and return unsigned long long

Original commit message from CVS:
* gst/gst.override: (_wrap_GST_TIME_ARGS):
Take either int or longs and return unsigned long long
This commit is contained in:
Edward Hervey 2005-11-21 18:58:50 +00:00
parent 9bee5b3f6a
commit 767ea14800
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-11-21 Edward Hervey <edward@fluendo.com>
* gst/gst.override: (_wrap_GST_TIME_ARGS):
Take either int or longs and return unsigned long long
2005-11-21 Edward Hervey <edward@fluendo.com>
* examples/gstfile.py:

View file

@ -850,9 +850,9 @@ _wrap_GST_TIME_ARGS(PyObject *self, PyObject *args, PyObject *kwargs)
gchar *ret;
guint64 time;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:time_to_string", kwlist, &PyLong_Type, &py_time))
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:time_to_string", kwlist, &py_time))
return NULL;
time = PyLong_AsUnsignedLongLong(py_time);
time = PyInt_AsUnsignedLongLongMask(py_time);
ret = g_strdup_printf("%"GST_TIME_FORMAT, GST_TIME_ARGS(time));
if (!ret) {