avfvideosrc: Report latency when doing screen capture
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 16 Dec 2022 19:31:00 +0000 (01:01 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 16 Dec 2022 23:58:07 +0000 (23:58 +0000)
commitb3806da2658c4c8dbdf7a0771df1c45a65ee0d14
tree1581a86657b69e0465ecfbca73d46667c46d8429
parent171a626c6c2b02322785fee6fa8e781bf28a28f2
avfvideosrc: Report latency when doing screen capture

There is no `device` when doing screen capture, but there is always an
`input`, so use that to decide when we can reply to a latency query.
Without this, the latency query just fails.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3589>
subprojects/gst-plugins-bad/sys/applemedia/avfvideosrc.m