summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-06-16 18:21:58 +0200
committerTim-Philipp Müller <tim@centricular.com>2018-07-18 16:40:22 +0100
commit4d2b670b932fecbe7a8c2897cd9924b8b07e6922 (patch)
treec8b4bfa0621929b782e80ac91cbffdf4afb8b521
parentdd1aed1cf9b1078bf585c9dc03a619c9215e3047 (diff)
downloadgstreamer-plugins-bad-4d2b670b932fecbe7a8c2897cd9924b8b07e6922.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
-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,