Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libbluray
Commits
4a8998e0
Commit
4a8998e0
authored
Oct 14, 2010
by
hpi1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libbluray_test: check fwrite() return value
parent
b622ec9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/examples/libbluray_test.c
src/examples/libbluray_test.c
+2
-1
No files found.
src/examples/libbluray_test.c
View file @
4a8998e0
...
...
@@ -72,7 +72,8 @@ int main(int argc, char *argv[])
while
(
1
)
{
int
len
=
bd_read
(
bd
,
buf
,
6144
);
if
(
len
<=
0
)
break
;
fwrite
(
buf
,
len
,
1
,
fd
);
if
(
fwrite
(
buf
,
len
,
1
,
fd
)
<
1
)
break
;
if
(
!
(
ii
%
1000
))
{
DEBUG
(
DBG_BLURAY
,
"%d
\r
"
,
ii
);
...
...
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