[FFmpeg-devel] [PATCH 5/5] rtspdec: Retry with TCP if UDP failed (original) (raw)
Ronald S. Bultje rsbultje
Mon Jan 24 17:56:28 CET 2011
- Previous message: [FFmpeg-devel] [PATCH 5/5] rtspdec: Retry with TCP if UDP failed
- Next message: [FFmpeg-devel] [PATCH 5/5] rtspdec: Retry with TCP if UDP failed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
On Mon, Jan 24, 2011 at 5:49 AM, Martin Storsj? wrote:
+static int resetuptcp(AVFormatContext *s) +{ + ? ?char host[1024]; + ? ?int port; + + ? ?avurlsplit(NULL, 0, NULL, 0, host, sizeof(host), &port, NULL, 0, + ? ? ? ? ? ? ? ? s->filename); + ? ?ffrtspundosetup(s); + ? ?// TODO: Handle the realchallenge for Real-RTSP + ? ?return ffrtspmakesetuprequest(s, host, port, RTSPLOWERTRANSPORTTCP, + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?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
- Previous message: [FFmpeg-devel] [PATCH 5/5] rtspdec: Retry with TCP if UDP failed
- Next message: [FFmpeg-devel] [PATCH 5/5] rtspdec: Retry with TCP if UDP failed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]