python3 and Gst.CLOCK_TYPE_NONE

philippe renon philippe_renon at yahoo.fr
Tue Sep 5 12:25:17 UTC 2017


Hi,
I am using python3 bindings (on Windows 64) and having some issues with Gst.CLOCK_TYPE_NONE.

>>> import gi
>>> from gi.repository import Gst
>>> time = Gst.CLOCK_TIME_NONE
>>> print(time)
18446744073709551615
But CLOCK_TYPE_NONE is supposed to be -1.
Gst-1.0.gir has this:
    <constant name="CLOCK_TIME_NONE"
              value="18446744073709551615"
              c:type="GST_CLOCK_TIME_NONE">
      <doc xml:space="preserve">Constant to define an undefined clock time.</doc>
      <type name="ClockTime" c:type="GstClockTime"/>
    </constant>

Where it gets tricky is that :- GstClockTime is typedefed as a guint64- GST_CLOCK_TIME_NONE is defined as ((GstClockTime) -1)
Is this issue specific to Win64 or are other platforms affected in the same way ?
Philippe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170905/7bab58f3/attachment.html>


More information about the gstreamer-devel mailing list