mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
This fixes a bug that occurs when an attempt is made to post a buffering message before the queue2 was assigned a bus. One common situation where this happens is when the use-buffering property is set to TRUE before the queue2 was added to a bin. If the result of gst_element_post_message() is not checked, and the aforementioned situation occurs, then last_posted_buffering_percent and percent_changed will still be updated, as if posting the message succeeded. Later attempts to post again will not do anything because the code then assumes that a message with the same percentage was previously posted successfully and posting again is redundant. Updating these variables only if posting succeed and explicitely posting a buffering message in the READY->PAUSED state change ensure that a buffering message is posted as early as possible. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/297> |
||
---|---|---|
.. | ||
capsfilter.c | ||
clocksync.c | ||
concat.c | ||
dataurisrc.c | ||
fakesink.c | ||
fakesrc.c | ||
fdsrc.c | ||
filesink.c | ||
filesrc.c | ||
funnel.c | ||
identity.c | ||
leaks.c | ||
multiqueue.c | ||
queue.c | ||
queue2.c | ||
selector.c | ||
streamiddemux.c | ||
tee.c | ||
valve.c |