mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 09:41:07 +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/3589>
This commit is contained in:
parent
171a626c6c
commit
b3806da265
1 changed files with 1 additions and 1 deletions
|
@ -966,7 +966,7 @@ checked:
|
||||||
BOOL result = NO;
|
BOOL result = NO;
|
||||||
|
|
||||||
if (GST_QUERY_TYPE (query) == GST_QUERY_LATENCY) {
|
if (GST_QUERY_TYPE (query) == GST_QUERY_LATENCY) {
|
||||||
if (device != nil && caps != NULL) {
|
if (input != nil && caps != NULL) {
|
||||||
GstClockTime min_latency, max_latency;
|
GstClockTime min_latency, max_latency;
|
||||||
|
|
||||||
min_latency = max_latency = latency;
|
min_latency = max_latency = latency;
|
||||||
|
|
Loading…
Reference in a new issue