queue: don't report 0 max-latency for leaky queue if max was already 0.

This commit is contained in:
Håvard Graff 2019-06-13 15:21:03 +00:00 committed by Sebastian Dröge
parent 229b4776ea
commit 3260b2f630

View file

@ -1670,7 +1670,7 @@ gst_queue_handle_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
&& queue->leaky == GST_QUEUE_NO_LEAK)
max += queue->max_size.time;
else if (queue->max_size.time > 0 && queue->leaky != GST_QUEUE_NO_LEAK)
max = MIN (queue->max_size.time, max);
max = MAX (queue->max_size.time, max);
else
max = -1;