Skip to content

rtsp-media: make sure streams are blocked when sending seek

The recent ONVIF work exposed a race condition when dealing with multiple streams: one of the sinks may preroll before other streams have started flushing. This led to the pipeline posting async-done prematurely, when some streams were actually still in the middle of performing a flushing seek. The newly-added code looks up a sticky segment event on the first stream in order to respond to the PLAY request with accurate Scale and Speed headers. In the failure condition, the first stream was flushing, and thus had no sticky segment event, leading to the PLAY request failing, and in turn the test.

Merge request reports