[xiph-cvs] cvs commit: ices/src stream.c
Brendan
brendan at xiph.org
Fri Jul 4 10:58:16 PDT 2003
brendan 03/07/04 13:58:16
Modified: src stream.c
Log:
Treat - in a playlist as stdin
Revision Changes Path
1.57 +4 -1 ices/src/stream.c
Index: stream.c
===================================================================
RCS file: /cvs/ice/ices/src/stream.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -p -u -r1.56 -r1.57
--- stream.c 21 Jun 2003 20:35:40 -0000 1.56
+++ stream.c 4 Jul 2003 17:58:16 -0000 1.57
@@ -319,7 +319,10 @@ stream_open_source (input_stream_t* sour
source->bytes_read = 0;
source->channels = 2;
- if ((fd = open (source->path, O_RDONLY)) < 0) {
+ if (source->path[0] == '-' && source->path[1] == '\0') {
+ ices_log_debug("Reading audio from stdin");
+ fd = 0;
+ } else if ((fd = open (source->path, O_RDONLY)) < 0) {
ices_util_strerror (errno, buf, sizeof (buf));
ices_log_error ("Error opening: %s", buf);
<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