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

Stan Seibert volsung at xiph.org
Tue Dec 18 22:29:44 PST 2001



volsung     01/12/18 22:29:44

  Modified:    ogg123   file_transport.c
  Log:
  Forgot to implement reading from stdin.  :)

Revision  Changes    Path
1.3       +5 -2      vorbis-tools/ogg123/file_transport.c

Index: file_transport.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/file_transport.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- file_transport.c	2001/12/19 02:52:53	1.2
+++ file_transport.c	2001/12/19 06:29:44	1.3
@@ -11,7 +11,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: file_transport.c,v 1.2 2001/12/19 02:52:53 volsung Exp $
+ last mod: $Id: file_transport.c,v 1.3 2001/12/19 06:29:44 volsung Exp $
 
  ********************************************************************/
 
@@ -59,7 +59,10 @@
   }
 
   /* Open file */
-  private->fp = fopen(source_string, "r");
+  if (strcmp(source_string, "-") == 0)
+    private->fp = stdin;
+  else
+    private->fp = fopen(source_string, "r");
 
   if (private->fp == NULL) {
     free(source->source_string);

--- >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