[vlc-devel] commit: File: (try to) give up reading on I/O error ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 18 19:18:14 CET 2009
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 18 20:16:03 2009 +0200| [3fb908e8d2db4302ccc2dcd2a814b424f853d3a1] | committer: Rémi Denis-Courmont
File: (try to) give up reading on I/O error
Whether this works depends on the stream and demux behaviour. There may
be a better way to fix this.
(cherry picked from commit f7b081e5192ef7ef29868a6697d4c69845faef2b)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3fb908e8d2db4302ccc2dcd2a814b424f853d3a1
---
modules/access/file.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index 3192481..1d32ee5 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -245,6 +245,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;
}
}
More information about the vlc-devel
mailing list