[xiph-cvs] cvs commit: vorbis-tools/oggdec oggdec.c

Michael Smith msmith at xiph.org
Sun Jul 28 23:53:15 PDT 2002



msmith      02/07/28 23:53:15

  Modified:    oggdec   oggdec.c
  Log:
  Fix an error message which occured incorrectly when outputting to stdout.

Revision  Changes    Path
1.13      +2 -4      vorbis-tools/oggdec/oggdec.c

Index: oggdec.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggdec/oggdec.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- oggdec.c	2002/07/29 06:43:30	1.12
+++ oggdec.c	2002/07/29 06:53:15	1.13
@@ -160,10 +160,8 @@
 
     WRITE_U32(headbuf+4, length-8);
     WRITE_U32(headbuf+40, length-44);
-    if(fseek(out, 0, SEEK_SET) != 0) {
-        fprintf(stderr, "ERROR: Failed to seek on seekable file: %s\n", strerror(errno));
+    if(fseek(out, 0, SEEK_SET) != 0)
         return 1;
-    }
 
     if(fwrite(headbuf, 1, 44, out) != 44) {
         fprintf(stderr, "ERROR: Failed to write wav header: %s\n", strerror(errno));
@@ -275,7 +273,7 @@
     if(seekable && !quiet)
         fprintf(stderr, "\n");
 
-    if(!raw && seekable)
+    if(!raw)
         rewrite_header(out, written); /* We don't care if it fails, too late */
 
     ov_clear(&vf);

<p><p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list