Commit b415326d authored by Rémi Duraffort's avatar Rémi Duraffort

FIx a segfault: we need both user and password to be not NULL.

(cherry picked from commit c90fc1d0)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent e2a69196
......@@ -487,7 +487,7 @@ static int Connect( demux_t *p_demux )
int i_ret = VLC_SUCCESS;
if( p_sys->url.i_port == 0 ) p_sys->url.i_port = 554;
if( p_sys->url.psz_username || p_sys->url.psz_password )
if( p_sys->url.psz_username && p_sys->url.psz_password )
{
int err;
err = asprintf( &psz_url, "rtsp://%s:%d%s", p_sys->url.psz_host,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment