mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
queue: don't report 0 max-latency for leaky queue if max was already 0.
This commit is contained in:
parent
229b4776ea
commit
3260b2f630
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue