Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e5e0eacc
Commit
e5e0eacc
authored
Jan 13, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: remove useless variable
parent
89119e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
modules/access/http.c
modules/access/http.c
+3
-9
No files found.
modules/access/http.c
View file @
e5e0eacc
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment