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

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

parent ee313399
......@@ -489,7 +489,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