[vlc-devel] commit: access_file: unneeded test. ( Rémi Duraffort )

git version control git at videolan.org
Wed Jan 14 11:14:10 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jan 14 11:13:47 2009 +0100| [ce3b16b0690f59e5e56ae413b81daf0e75601100] | committer: Rémi Duraffort 

access_file: unneeded test.

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

 modules/access/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/file.c b/modules/access/file.c
index 83306b4..eefa2a2 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -234,7 +234,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
     }
     else if( i_ret > 0 )
         p_access->info.i_pos += i_ret;
-    else if( i_ret == 0 )
+    else
         p_access->info.b_eof = true;
 
     p_sys->i_nb_reads++;




More information about the vlc-devel mailing list