File: (try to) give up reading on I/O error
[vlc.git] / modules / access / file.c
index eefa2a2..a7defbb 100644 (file)
@@ -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;
         }
     }