rtsp-server: stream: Don't loop forever if binding to the multicast address fails
authorSebastian Dröge <sebastian@centricular.com>
Fri, 2 Sep 2022 13:31:54 +0000 (16:31 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 2 Sep 2022 14:28:26 +0000 (14:28 +0000)
commit57a6e48ed1c3bad72df656f74f0807dd40747554
treeb5b5ee4d86bb93f1d3fb11e5e2f45c800b7d5f93
parenta1b60be22b4d3ca8f8bf140232b2fc4cd6313488
rtsp-server: stream: Don't loop forever if binding to the multicast address fails

The address/port is pre-defined by the caller of the function, so
retrying is only going to loop forever.

Ideally the multicast address should be checked after allocating but
this doesn't happen currently, so it's better to error out cleanly then
to loop forever trying the same address.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2975>
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-stream.c