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:
Arun Raghavan 2022-04-01 23:27:24 +05:30
parent a40634eebe
commit 4fc7f5147b

View file

@ -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;
}