• Jan Schmidt's avatar
    queue2: Defer downstream bitrate query to the streaming thread. · 8e670a23
    Jan Schmidt authored
    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>
gstqueue2.c 129 KB