X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Flive555.cpp;h=93433a725d8fa18e20be9d4b60b1deaeb244d152;hb=55545b45143a71024dbc9d4a2162a1f88884c830;hp=9b77dbae419da7d02e8f4c2c7c8174bd10276b1f;hpb=417715c9f26970b0bcace33e836b36ecebeb3b43;p=vlc diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index 9b77dbae41..93433a725d 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -659,7 +659,7 @@ describe: msg_Dbg( p_demux, "connection error %d", i_code ); if( i_code == 403 ) dialog_Fatal( p_demux, _("RTSP connection failed"), - _("You are not allowed to access this server.") ); + _("Access to the stream is denied by the server configuration.") ); } if( p_sys->rtsp ) RTSPClient::close( p_sys->rtsp ); p_sys->rtsp = NULL; @@ -1357,8 +1357,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) if( p_sys->f_npt_length > 0 ) { double d_length = p_sys->f_npt_length * 1000000.0; - /* Not sure if -0.5 is needed, but better be safe */ - if( d_length - 0.5 > INT64_MAX ) + if( d_length >= INT64_MAX ) *pi64 = INT64_MAX; else *pi64 = (int64_t)d_length;