gstreamer/tests
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
..
benchmarks Run gst-indent through the files 2018-11-28 05:58:53 +02:00
check queue2: Fix missing/dropped buffering messages at startup 2020-09-20 01:12:14 +01:00
examples examples: Remove dead assignments 2018-12-15 11:08:09 +01:00
misc tests: netclock-replay: fix build with new api export/import 2018-09-24 08:39:39 +01:00
.gitignore Add new streamiddemux binaries to .gitignore 2015-03-14 16:05:57 +00:00
Makefile.am tests: don't build misc subdir if both examples and benchmarks have been disabled 2016-09-02 23:22:17 +01:00
meson.build meson: Always use a dependency object for dependencies 2018-09-05 16:33:43 +05:30
README README: update after removal of "old" dir. 2010-07-05 12:26:42 +03:00

This directory contains regression tests, functionality tests, examples,
benchmarks, ...

benchmarks/
   benchmarks to profile pieces of GStreamer
check/
   unit tests using the check library, non-interactive
examples/
   small examples demonstrating the use of various features
misc/
   prototypes, random bits, ...