mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
plugins/elements/gstqueue.c: Add the min-threshold to the min latency if possible. Fixes #529148.
Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * plugins/elements/gstqueue.c: (gst_queue_handle_src_query): Add the min-threshold to the min latency if possible. Fixes #529148.
This commit is contained in:
parent
7ca5c13354
commit
8c484d5a14
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-04-21 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
Patch by: Olivier Crete <tester at tester dot ca>
|
||||
|
||||
* plugins/elements/gstqueue.c: (gst_queue_handle_src_query):
|
||||
Add the min-threshold to the min latency if possible. Fixes #529148.
|
||||
|
||||
2008-04-21 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* docs/gst/gstreamer.types.in:
|
||||
|
|
|
@ -1217,6 +1217,10 @@ gst_queue_handle_src_query (GstPad * pad, GstQuery * query)
|
|||
else
|
||||
max = -1;
|
||||
|
||||
/* adjust for min-threshold */
|
||||
if (queue->min_threshold.time > 0 && min != -1)
|
||||
min += queue->min_threshold.time;
|
||||
|
||||
gst_query_set_latency (query, live, min, max);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue