[xiph-commits] r3775 - liboggplay/trunk/src/liboggplay

doublec at svn.annodex.net doublec at svn.annodex.net
Sun Nov 9 18:42:03 PST 2008


Author: doublec
Date: 2008-11-09 18:42:02 -0800 (Sun, 09 Nov 2008)
New Revision: 3775

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_file_reader.c
   liboggplay/trunk/src/liboggplay/oggplay_file_reader.h
Log:
Fix seek usage in oggplay file reader (fix from Karl Heyes)


Modified: liboggplay/trunk/src/liboggplay/oggplay_file_reader.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_file_reader.c	2008-11-10 00:07:28 UTC (rev 3774)
+++ liboggplay/trunk/src/liboggplay/oggplay_file_reader.c	2008-11-10 02:42:02 UTC (rev 3775)
@@ -59,9 +59,9 @@
     return E_OGGPLAY_BAD_INPUT;
   }
 
-  fseek(me->file, SEEK_END, 0);
+  fseek(me->file, 0L, SEEK_END);
   me->size = ftell(me->file);
-  fseek(me->file, SEEK_SET, 0);
+  fseek(me->file, 0L, SEEK_SET);
 
   me->current_position = 0;
 

Modified: liboggplay/trunk/src/liboggplay/oggplay_file_reader.h
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_file_reader.h	2008-11-10 00:07:28 UTC (rev 3774)
+++ liboggplay/trunk/src/liboggplay/oggplay_file_reader.h	2008-11-10 02:42:02 UTC (rev 3775)
@@ -49,8 +49,8 @@
   OggPlayReader     functions;
   char            * file_name;
   FILE            * file;
-  int               current_position;
-  int               size;
+  long              current_position;
+  long              size;
 } OggPlayFileReader;
 
 #endif



More information about the commits mailing list