playbin: filter out buffering messages when switching uri
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 28 Mar 2014 12:02:54 +0000 (13:02 +0100)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 5 Sep 2014 15:44:27 +0000 (12:44 -0300)
commita2122f04ec6305a1393e73eb8e7fccb291f36ccb
treeca7f4cc5edf4381393b24ea4270da4723906f676
parent684cf44ee3c8ccdbcc2f5711f050ba57d9909183
playbin: filter out buffering messages when switching uri

When switching URI from about-to-finish, playbin starts decoding the new
URI and the queue2 inside uridecodebin starts emitting buffering messages
immediately. However, the queue(s) inside playsink still have buffers to
play and the pipeline doesn't need to pause for buffering, so we should
not send those buffering messages up to the application, otherwise there
is an audible glitch caused by pausing the pipeline for a very short time.

https://bugzilla.gnome.org/show_bug.cgi?id=727255
gst/playback/gstplaybin2.c