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
@ -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>
|
2006-02-02 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/gst.defs:
|
* 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))
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:time_to_string", kwlist, &py_time))
|
||||||
return NULL;
|
return NULL;
|
||||||
time = PyInt_AsUnsignedLongLongMask(py_time);
|
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) {
|
if (!ret) {
|
||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user