[FFmpeg-devel] [PATCH 5/5] rtspdec: Retry with TCP if UDP failed

Ronald S. Bultje rsbultje
Mon Jan 24 17:56:28 CET 2011


Hi,

On Mon, Jan 24, 2011 at 5:49 AM, Martin Storsj? <martin at martin.st> wrote:
> +static int resetup_tcp(AVFormatContext *s)
> +{
> + ? ?char host[1024];
> + ? ?int port;
> +
> + ? ?av_url_split(NULL, 0, NULL, 0, host, sizeof(host), &port, NULL, 0,
> + ? ? ? ? ? ? ? ? s->filename);
> + ? ?ff_rtsp_undo_setup(s);
> + ? ?// TODO: Handle the real_challenge for Real-RTSP
> + ? ?return ff_rtsp_make_setup_request(s, host, port, RTSP_LOWER_TRANSPORT_TCP,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?NULL);
> +}

How do you test this? Can you try sending 2 SETUPs to any REAL server,
see it fail, put a TEARDOWN in the middle to show that that fixes it?

Ronald



More information about the ffmpeg-devel mailing list