From f7b081e5192ef7ef29868a6697d4c69845faef2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 18 Jan 2009 20:16:03 +0200 Subject: [PATCH] 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. --- modules/access/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/access/file.c b/modules/access/file.c index eefa2a2590..a7defbbfc4 100644 --- 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; } } -- 2.20.1