Skip to content

rtsp-media: collect GstRTSPStreamBlocking messages

When receiving a blocking message, don't check if all streams are blocked by counting the number of blocking messages received and calling gst_rtsp_stream_is_blocking(). Instead, wait for a blocking message from each stream before continuing.

Checking the streams directly could lead to a race condition, if multiple blocking messages had been posted before the first one was handled. Counting the number of blocking messages received may solve this race condition but it could be unstable and result in unexpected behavior, e.g. if one stream would send two blocking messages.

Edited by Sebastian Dröge

Merge request reports