gstreamer/gst
Sebastian Dröge fb8004a6eb rtsp-media: Add/configure transports when completing the pipeline
Otherwise the transports are not set up yet during the PLAY request
handling when unsuspending (and thus unblocking) the media.

In case of live pipelines this then causes the first few packets to go
to the sinks before they know what to do with them, and they simply
discard them which is rather suboptimal in case of keyframes.

For non-live pipelines this is not a problem because the sink will still
be PAUSED and as such not send out the data yet but wait until it goes
to PLAYING, which is late enough.

Adding the transports multiple times is not a problem: if the transport
is already added it won't be added another time and TRUE will be
returned.

This fixes a regression introduced by a7732a68e8
before 1.14.0.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/issues/107

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/135>
2020-06-15 19:45:38 +03:00
..
rtsp-server rtsp-media: Add/configure transports when completing the pipeline 2020-06-15 19:45:38 +03:00
rtsp-sink plugins: uddate gst_type_mark_as_plugin_api() calls 2020-06-06 00:41:51 +02:00
meson.build meson: add option to disable build of rtspclientsink plugin 2018-09-19 12:17:57 +01:00