git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
60cc18a
)
File: (try to) give up reading on I/O error
author
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sun, 18 Jan 2009 18:16:03 +0000
(20:16 +0200)
committer
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sun, 18 Jan 2009 18:16:03 +0000
(20:16 +0200)
Whether this works depends on the stream and demux behaviour. There may
be a better way to fix this.
modules/access/file.c
patch
|
blob
|
history
diff --git
a/modules/access/file.c
b/modules/access/file.c
index
eefa2a2
..
a7defbb
100644
(file)
--- a/
modules/access/file.c
+++ b/
modules/access/file.c
@@
-229,6
+229,7
@@
static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
msg_Err (p_access, "read failed (%m)");
intf_UserFatal (p_access, false, _("File reading failed"),
_("VLC could not read the file."));
+ p_access->info.b_eof = true;
return 0;
}
}