mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
9bee5b3f6a
commit
767ea14800
2 changed files with 7 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue