Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Vorbis tools
Commits
047ab092
Commit
047ab092
authored
Jul 14, 2002
by
Stan Seibert
Browse files
Improper condition means the thread reading from HTTP buffer would never
block and just spin. svn path=/trunk/vorbis-tools/; revision=3629
parent
676b33fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogg123/buffer.c
View file @
047ab092
...
...
@@ -11,7 +11,7 @@
* *
********************************************************************
last mod: $Id: buffer.c,v 1.1
8
2002/07/
06 18:18:32
volsung Exp $
last mod: $Id: buffer.c,v 1.1
9
2002/07/
14 05:38:00
volsung Exp $
********************************************************************/
...
...
@@ -532,7 +532,7 @@ size_t buffer_get_data (buf_t *buf, char *data, long nbytes)
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment