From 0b03b471937ddd0e6d8479d2f3ba1a517b005e7e Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sat, 16 Jun 2018 18:21:58 +0200 Subject: [PATCH] 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 --- ext/soundtouch/gstpitch.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index e70e29803a..41b6621380 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,