mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-08 09:09:26 +00:00
videotestsrc: Don't fail latency query if fps is 0
While we can't report a meaningful amount of time in this case, we can report liveness (and use the basesrc default of 0).
This commit is contained in:
parent
a40634eebe
commit
4fc7f5147b
|
@ -1088,6 +1088,9 @@ gst_video_test_src_query (GstBaseSrc * bsrc, GstQuery * query)
|
|||
res = TRUE;
|
||||
} else {
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
/* Without a framerate, we can't determine latency in time units, but
|
||||
* we can chain up to report the default values and live-ness */
|
||||
res = GST_BASE_SRC_CLASS (parent_class)->query (bsrc, query);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue