Commit e5e0eacc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

http: remove useless variable

parent 89119e54
......@@ -148,7 +148,6 @@ struct access_sys_t
/* */
int i_code;
const char *psz_protocol;
char *psz_mime;
char *psz_location;
......@@ -1097,15 +1096,16 @@ static int Request( access_t *p_access, uint64_t i_tell )
}
if( !strncmp( psz, "HTTP/1.", 7 ) )
{
p_sys->psz_protocol = "HTTP";
p_sys->i_code = atoi( &psz[9] );
msg_Dbg( p_access, "HTTP answer code %d", p_sys->i_code );
}
else if( !strncmp( psz, "ICY", 3 ) )
{
p_sys->psz_protocol = "ICY";
p_sys->i_code = atoi( &psz[4] );
msg_Dbg( p_access, "ICY answer code %d", p_sys->i_code );
p_sys->b_icecast = true;
p_sys->b_reconnect = true;
p_sys->b_seekable = false;
}
else
{
......@@ -1113,12 +1113,6 @@ static int Request( access_t *p_access, uint64_t i_tell )
free( psz );
goto error;
}
msg_Dbg( p_access, "protocol '%s' answer code %d",
p_sys->psz_protocol, p_sys->i_code );
if( !strcmp( p_sys->psz_protocol, "ICY" ) )
{
p_sys->b_seekable = false;
}
if( p_sys->i_code != 206 && p_sys->i_code != 401 )
{
p_sys->b_seekable = false;
......
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