Skip to content

webrtcbin: fix blocking of receive bin

The receive bin should block buffers from reaching dtlsdec before the dtls connection has started.

While there was code to block its sinkpads until receive_state was different from BLOCK, nothing was ever setting it to BLOCK in the first place. This commit corrects this by setting the initial state to BLOCK, directly in the constructor.

In addition, now that blocking is effective, we want to only block buffers and buffer lists, as that's what might trigger errors, we want to still let events and queries go through, not doing so causes immediate deadlocks when linking the bin.

Merge request reports