]> git.sesse.net Git - vlc/blobdiff - modules/demux/live555.cpp
ts: Fix audio type description parsing
[vlc] / modules / demux / live555.cpp
index 9b77dbae419da7d02e8f4c2c7c8174bd10276b1f..93433a725d8fa18e20be9d4b60b1deaeb244d152 100644 (file)
@@ -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;