summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-06-16 18:21:58 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2018-06-16 18:38:46 +0200
commit0b03b471937ddd0e6d8479d2f3ba1a517b005e7e (patch)
tree4ce79bda4298d63cdfa479aaaed576d51ee94ee6 /ext
parent5f020be6cd2ad97df4c78f67935bd0eb9e412338 (diff)
downloadgstreamer-plugins-bad-0b03b471937ddd0e6d8479d2f3ba1a517b005e7e.tar.gz
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
Diffstat (limited to 'ext')
-rw-r--r--ext/soundtouch/gstpitch.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc
index e70e29803..41b662138 100644
--- a/ext/soundtouch/gstpitch.cc
+++ b/ext/soundtouch/gstpitch.cc
@@ -645,8 +645,6 @@ gst_pitch_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
min += pitch->min_latency;
if (max != GST_CLOCK_TIME_NONE)
max += pitch->max_latency;
- else
- max = pitch->max_latency;
GST_DEBUG ("Calculated total latency : min %"
GST_TIME_FORMAT " max %" GST_TIME_FORMAT,