Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 68ae6bf0d09c3f3076554af54ffffac6 > files > 3

vorbis-tools-1.2.0-4mdv2009.0.src.rpm

--- vorbis-tools-1.0.1/ogg123/file_transport.c-DIST	Sun Aug 22 20:33:26 2004
+++ vorbis-tools-1.0.1/ogg123/file_transport.c	Mon Dec 20 12:38:51 2004
@@ -84,6 +84,11 @@
   int items;
   long start;
 
+/* XXX HACK special-case stdin */
+  if (private->fp == stdin)
+    return 0;
+/* XXX */
+
   /* Record where we are */
   start = ftell(fp);
 
@@ -118,6 +123,11 @@
   file_private_t *private = source->private;
   FILE *fp = private->fp;
 
+/* XXX HACK special-case stdin */
+  if (private->fp == stdin)
+    return -1;
+/* XXX */
+
   return fseek(fp, offset, whence);  
 }
 
@@ -134,6 +144,11 @@
 {
   file_private_t *private = source->private;
   FILE *fp = private->fp;
+
+/* XXX HACK special-case stdin */
+  if (private->fp == stdin)
+    return 0;
+/* XXX */
 
   return ftell(fp);
 }