Implement conversion of GST_FORMAT_BYTES gst.FORMAT_TIME in element

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Implement conversion of GST_FORMAT_BYTES gst.FORMAT_TIME in element

Glenn Pierce
I have developed a Python element derived from BaseSrc that has a
default format of GST_FORMAT_BYTES.
Does anyone know what I would have to implement to perform automatic
conversion to gst.FORMAT_TIME queries.

Ie so I can call

element.query_position(gst.Format(gst.FORMAT_TIME), None)[0]


Thanks

Glenn
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel