mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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/3591>
This commit is contained in:
parent
79672414cc
commit
3cb73e02aa
1 changed files with 1 additions and 1 deletions
|
@ -933,7 +933,7 @@ checked:
|
|||
BOOL result = NO;
|
||||
|
||||
if (GST_QUERY_TYPE (query) == GST_QUERY_LATENCY) {
|
||||
if (device != nil && caps != NULL) {
|
||||
if (input != nil && caps != NULL) {
|
||||
GstClockTime min_latency, max_latency;
|
||||
|
||||
min_latency = max_latency = latency;
|
||||
|
|
Loading…
Reference in a new issue