diff --git a/ChangeLog b/ChangeLog index 15af3694dc..da225a51b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-21 Edward Hervey + + * gst/gst.override: (_wrap_GST_TIME_ARGS): + Take either int or longs and return unsigned long long + 2005-11-21 Edward Hervey * examples/gstfile.py: diff --git a/gst/gst.override b/gst/gst.override index 2de8d1b5e5..578550729a 100644 --- a/gst/gst.override +++ b/gst/gst.override @@ -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) {