Port of the test-launch.c example from gst-rtsp-server. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5961>