Commit 8e670a23 authored by 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>
Showing with 23 additions and 5 deletions