Skip to content

webrtcsink: Set caps-change-mode=delayed on encoder capsfilter

Otherwise when changing the target caps (e.g. for reducing quality) there is a race condition between buffers between the converter elements and renegotiation.

For example, videoconvertscale might've output a 1920x1080 buffer, then the capsfilter is configured to 1280x720, the buffer arrives in videorate, videorate notices that renegotiation is pending, tries to renegotiate and ends up with EMPTY caps because it can only change the framerate but not the resolution.

Merge request reports

Loading