avfvideosrc: improve timestamping and latency reporting
authorAlessandro Decina <alessandro.d@gmail.com>
Wed, 17 Dec 2014 01:20:54 +0000 (12:20 +1100)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 17 Dec 2014 01:24:05 +0000 (12:24 +1100)
commit0156725480da4fa32d6377c6717ceba658af4273
tree6b64dceba9e5fdf29328b75c59c5e3993e89f2ee
parent96ea75d75a1d4d406b2b489ea703897e44bb9adb
avfvideosrc: improve timestamping and latency reporting

Use AVF provided timings to timestamp output buffers. Use the running time at
the time the first buffer is produced to base timestamps on. Report 1-frame
latency based on the negotiated framerate instead of hardcoding 4ms latency.
sys/applemedia/avfvideosrc.m