gstreamer/tests/check
Carlos Rafael Giani f66959c275 queue2: Fix missing/dropped buffering messages at startup
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>
2020-09-20 01:12:14 +01:00
..
elements queue2: Fix missing/dropped buffering messages at startup 2020-09-20 01:12:14 +01:00
generic tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gst value: Fix segfault comparing empty GValueArrays 2020-06-07 01:41:52 +01:00
libs baseparse: Fix upstream read caching 2020-06-07 00:47:41 +01:00
pipelines tests: fix message leak in seek test 2017-04-19 13:39:46 +01:00
tools tests: refactor tools check a little 2014-10-31 16:10:01 +00:00
.gitignore tests: add check for gst-inspect --exists functionality 2012-09-01 23:02:10 +01:00
gstreamer.supp tests: add the valgrind suppression file from the "common" module 2019-03-24 18:11:41 +00:00
Makefile.am bitwriter: Add unit tests 2018-05-06 17:05:27 +02:00
meson.build tests: fdsrc: Exclude unit test on Windows 2019-03-10 11:48:31 +00:00