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
d5821107
Commit
d5821107
authored
Jan 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP access: privatize b_error
parent
87b420e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/access/http.c
modules/access/http.c
+5
-4
No files found.
modules/access/http.c
View file @
d5821107
...
@@ -156,6 +156,7 @@ vlc_module_end ()
...
@@ -156,6 +156,7 @@ vlc_module_end ()
struct
access_sys_t
struct
access_sys_t
{
{
int
fd
;
int
fd
;
bool
b_error
;
tls_session_t
*
p_tls
;
tls_session_t
*
p_tls
;
v_socket_t
*
p_vs
;
v_socket_t
*
p_vs
;
...
@@ -881,8 +882,8 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
...
@@ -881,8 +882,8 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
if
(
i_read
==
0
)
if
(
i_read
==
0
)
p_access
->
info
.
b_eof
=
true
;
p_access
->
info
.
b_eof
=
true
;
else
if
(
i_read
<
0
)
if
(
i_read
<
0
)
p_
acces
s
->
b_error
=
true
;
p_
sy
s
->
b_error
=
true
;
}
}
if
(
p_sys
->
b_has_size
)
if
(
p_sys
->
b_has_size
)
...
@@ -1202,7 +1203,7 @@ static int Connect( access_t *p_access, uint64_t i_tell )
...
@@ -1202,7 +1203,7 @@ static int Connect( access_t *p_access, uint64_t i_tell )
free
(
psz
);
free
(
psz
);
if
(
!
vlc_object_alive
(
p_access
)
||
p_
acces
s
->
b_error
)
if
(
!
vlc_object_alive
(
p_access
)
||
p_
sy
s
->
b_error
)
{
{
Disconnect
(
p_access
);
Disconnect
(
p_access
);
return
-
1
;
return
-
1
;
...
@@ -1387,7 +1388,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
...
@@ -1387,7 +1388,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
goto
error
;
goto
error
;
}
}
if
(
!
vlc_object_alive
(
p_access
)
||
p_
acces
s
->
b_error
)
if
(
!
vlc_object_alive
(
p_access
)
||
p_
sy
s
->
b_error
)
{
{
free
(
psz
);
free
(
psz
);
goto
error
;
goto
error
;
...
...
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