Commit 8e670a23 authored by Jan Schmidt's avatar Jan Schmidt Committed by GStreamer Merge Bot

queue2: Defer downstream bitrate query to the streaming thread.

When we want to perform a downstream bitrate query, just
set the reconfigure flag on the srcpad and get the streaming
thread to do it. That avoids emitting a downstream query
when receiving the upstream RECONFIGURE event - which can
lead to deadlocks if downstream is sending the event from
within a lock - e.g. input-selector.

If querying the downstream bitrate changes the cached
value, then make sure to update our buffering state
and potentially post a BUFFERING message to the application.

Fixes: #566
Part-of: <!501>
parent f2478618
Pipeline #156667 waiting for manual action with stages
in 28 seconds