Enlightenment CVS committal

Author  : tsauerbeck
Project : misc
Module  : eplayer

Dir     : misc/eplayer/src/input/vorbis


Modified Files:
        vorbis.c 


Log Message:
plugin API changes
===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/src/input/vorbis/vorbis.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- vorbis.c    9 Nov 2003 14:43:03 -0000       1.4
+++ vorbis.c    7 Dec 2003 10:32:41 -0000       1.5
@@ -84,6 +84,7 @@
 int vorbis_read(unsigned char **buf) {
 #define BUF_SIZE 4096
        static unsigned char outbuf[BUF_SIZE];
+       int ret;
        
 #ifdef WORDS_BIGENDIAN
        static int bigendian = 1;
@@ -92,8 +93,9 @@
 #endif
 
        *buf = outbuf;
-
-       return ov_read(&track, *buf, BUF_SIZE, bigendian, 2, 1, NULL);
+       ret = ov_read(&track, *buf, BUF_SIZE, bigendian, 2, 1, NULL);
+       
+       return ret ? ret : EOF;
 }
 
 int vorbis_get_current_pos() {




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to