[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:17:25 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 18 20:16:03 2009 +0200| [f7b081e5192ef7ef29868a6697d4c69845faef2b] | 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7b081e5192ef7ef29868a6697d4c69845faef2b
---

 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 eefa2a2..a7defbb 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;
         }
     }




More information about the vlc-devel mailing list