diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-06-16 18:21:58 +0200 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-06-16 18:38:46 +0200 |
commit | 0b03b471937ddd0e6d8479d2f3ba1a517b005e7e (patch) | |
tree | 4ce79bda4298d63cdfa479aaaed576d51ee94ee6 | |
parent | 5f020be6cd2ad97df4c78f67935bd0eb9e412338 (diff) | |
download | gstreamer-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
-rw-r--r-- | ext/soundtouch/gstpitch.cc | 2 |
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, |