[xiph-cvs] cvs commit: vorbis-tools/ogg123 buffer.c
Stan Seibert
volsung at xiph.org
Sat Jul 13 22:38:02 PDT 2002
volsung 02/07/13 22:38:01
Modified: ogg123 buffer.c
Log:
Improper condition means the thread reading from HTTP buffer would never
block and just spin.
Revision Changes Path
1.19 +2 -2 vorbis-tools/ogg123/buffer.c
Index: buffer.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/buffer.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- buffer.c 2002/07/06 18:18:32 1.18
+++ buffer.c 2002/07/14 05:38:00 1.19
@@ -11,7 +11,7 @@
* *
********************************************************************
- last mod: $Id: buffer.c,v 1.18 2002/07/06 18:18:32 volsung Exp $
+ last mod: $Id: buffer.c,v 1.19 2002/07/14 05:38:00 volsung Exp $
********************************************************************/
@@ -532,7 +532,7 @@
if (buf->curfill == 0 && buf->eos)
break; /* No more data to read */
- if (buf->curfill == 0 && (buf->prebuffering && !buf->eos)) {
+ if (buf->curfill == 0 || (buf->prebuffering && !buf->eos)) {
DEBUG("Waiting for more data to copy.");
COND_WAIT(buf->playback_cond, buf->mutex);
}
<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