mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
queue2: update buffering when changing capacity
When the capacity of the queue changes, make sure we post an updated buffering message because we might suddenly have completed the buffering stage.
This commit is contained in:
parent
e3a386e9cf
commit
d7a98f9802
1 changed files with 4 additions and 2 deletions
|
@ -3274,8 +3274,10 @@ gst_queue2_change_state (GstElement * element, GstStateChange transition)
|
|||
/* changing the capacity of the queue must wake up
|
||||
* the _chain function, it might have more room now
|
||||
* to store the buffer/event in the queue */
|
||||
#define QUEUE_CAPACITY_CHANGE(q)\
|
||||
GST_QUEUE2_SIGNAL_DEL (queue);
|
||||
#define QUEUE_CAPACITY_CHANGE(q) \
|
||||
GST_QUEUE2_SIGNAL_DEL (queue); \
|
||||
if (queue->use_buffering) \
|
||||
update_buffering (queue);
|
||||
|
||||
/* Changing the minimum required fill level must
|
||||
* wake up the _loop function as it might now
|
||||
|
|
Loading…
Reference in a new issue