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
73ed9baf
Commit
73ed9baf
authored
Aug 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addons: fix stream error handling
parent
5a13c1fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/misc/addons/fsstorage.c
modules/misc/addons/fsstorage.c
+1
-1
modules/misc/addons/vorepository.c
modules/misc/addons/vorepository.c
+1
-1
No files found.
modules/misc/addons/fsstorage.c
View file @
73ed9baf
...
@@ -412,7 +412,7 @@ static int InstallFile( addons_storage_t *p_this, const char *psz_downloadlink,
...
@@ -412,7 +412,7 @@ static int InstallFile( addons_storage_t *p_this, const char *psz_downloadlink,
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
while
(
(
i_read
=
stream_Read
(
p_stream
,
&
buffer
,
1
<<
10
)
)
)
while
(
(
i_read
=
stream_Read
(
p_stream
,
&
buffer
,
1
<<
10
)
)
>
0
)
{
{
if
(
fwrite
(
&
buffer
,
i_read
,
1
,
p_destfile
)
<
1
)
if
(
fwrite
(
&
buffer
,
i_read
,
1
,
p_destfile
)
<
1
)
{
{
...
...
modules/misc/addons/vorepository.c
View file @
73ed9baf
...
@@ -408,7 +408,7 @@ static int Retrieve( addons_finder_t *p_finder, addon_entry_t *p_entry )
...
@@ -408,7 +408,7 @@ static int Retrieve( addons_finder_t *p_finder, addon_entry_t *p_entry )
char
buffer
[
1
<<
10
];
char
buffer
[
1
<<
10
];
int
i_read
=
0
;
int
i_read
=
0
;
while
(
(
i_read
=
stream_Read
(
p_stream
,
&
buffer
,
1
<<
10
)
)
)
while
(
(
i_read
=
stream_Read
(
p_stream
,
&
buffer
,
1
<<
10
)
)
>
0
)
{
{
if
(
fwrite
(
&
buffer
,
i_read
,
1
,
p_destfile
)
<
1
)
if
(
fwrite
(
&
buffer
,
i_read
,
1
,
p_destfile
)
<
1
)
{
{
...
...
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