[vlc-devel] commit: Fail permanently on fatal file I/O error ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Sep 28 17:42:54 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 28 18:45:59 2008 +0300| [5fdc56dbbec5c62bcbe329a7de7c2bce2ff84a47] | committer: Rémi Denis-Courmont 

Fail permanently on fatal file I/O error

This fixes a busy loop.

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

 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 cdf51ac..b2b2b23 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."));
+                return 0;
         }
     }
     else if( i_ret > 0 )




More information about the vlc-devel mailing list