From 767ea148005e44ca90d72e73b4f8ac6650e59844 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 Nov 2005 18:58:50 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ gst/gst.override | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15af369..da225a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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: Cleanup * gst/gst-types.defs: diff --git a/gst/gst.override b/gst/gst.override index 2de8d1b..5785507 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) { -- 2.7.4