mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 15:49:54 +00:00
gst/gst.override: (gst.TIME_ARGS) return "CLOCK_TIME_NONE" for invalid times instead of outputing gibberish value.
Original commit message from CVS: * gst/gst.override: (gst.TIME_ARGS) return "CLOCK_TIME_NONE" for invalid times instead of outputing gibberish value.
This commit is contained in:
parent
b36f73ee11
commit
b92ae45a82
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-02-02 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gst.override:
|
||||
(gst.TIME_ARGS) return "CLOCK_TIME_NONE" for invalid times instead of
|
||||
outputing gibberish value.
|
||||
|
||||
2006-02-02 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gst.defs:
|
||||
|
|
|
@ -867,7 +867,10 @@ _wrap_GST_TIME_ARGS(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:time_to_string", kwlist, &py_time))
|
||||
return NULL;
|
||||
time = PyInt_AsUnsignedLongLongMask(py_time);
|
||||
ret = g_strdup_printf("%"GST_TIME_FORMAT, GST_TIME_ARGS(time));
|
||||
if (GST_CLOCK_TIME_IS_VALID (time))
|
||||
ret = g_strdup_printf("%"GST_TIME_FORMAT, GST_TIME_ARGS(time));
|
||||
else
|
||||
ret = g_strdup ("CLOCK_TIME_NONE");
|
||||
|
||||
if (!ret) {
|
||||
Py_INCREF(Py_None);
|
||||
|
|
Loading…
Reference in a new issue