mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
pitch: fix latency reporting
When max is GST_CLOCK_TIME_NONE in the query, it should not be set in the query handler, this otherwise could lead to impossible situations, where the minimum latency ended up greater than the maximum. https://bugzilla.gnome.org/show_bug.cgi?id=796603
This commit is contained in:
parent
5f020be6cd
commit
0b03b47193
1 changed files with 0 additions and 2 deletions
|
@ -645,8 +645,6 @@ gst_pitch_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
min += pitch->min_latency;
|
min += pitch->min_latency;
|
||||||
if (max != GST_CLOCK_TIME_NONE)
|
if (max != GST_CLOCK_TIME_NONE)
|
||||||
max += pitch->max_latency;
|
max += pitch->max_latency;
|
||||||
else
|
|
||||||
max = pitch->max_latency;
|
|
||||||
|
|
||||||
GST_DEBUG ("Calculated total latency : min %"
|
GST_DEBUG ("Calculated total latency : min %"
|
||||||
GST_TIME_FORMAT " max %" GST_TIME_FORMAT,
|
GST_TIME_FORMAT " max %" GST_TIME_FORMAT,
|
||||||
|
|
Loading…
Reference in a new issue