vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Nov 22 18:53:28 2020 +0200| [38d214bc4f2ef68dfe6859383e12a20ae91e62de] | committer: Thomas Guillem
httpd: do not disable timeout for RTSP Use the same timeout for the RTSP connection as for the RTSP session. A shorter timeout is inefficient, as it requires clients to reconnect to refresh the session anyway. A longer timeout is pointless as the session would timeout and the RTP streams would stop regardless of the connection staying alive. Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38d214bc4f2ef68dfe6859383e12a20ae91e62de --- src/network/httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/httpd.c b/src/network/httpd.c index 9a0a352566..2f7f20c362 100644 --- a/src/network/httpd.c +++ b/src/network/httpd.c @@ -917,8 +917,8 @@ httpd_host_t *vlc_https_HostNew(vlc_object_t *obj) httpd_host_t *vlc_rtsp_HostNew(vlc_object_t *p_this) { - /* XXX: for QT I have to disable timeout. Try to find why */ - return httpd_HostCreate(p_this, "rtsp-host", "rtsp-port", NULL, 0); + unsigned timeout = var_InheritInteger(p_this, "rtsp-timeout"); + return httpd_HostCreate(p_this, "rtsp-host", "rtsp-port", NULL, timeout); } static struct httpd _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
