Commit 556beabf authored by Stan Seibert's avatar Stan Seibert

Hack to keep a boundary case in the buffering code from locking up the

application in a messy way.  Yes, this should be fixed, but I don't want
rc2 to go out with this problem.

svn path=/trunk/vorbis-tools/; revision=1711
parent 943099b7
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* * * *
******************************************************************** ********************************************************************
last mod: $Id: ogg123.c,v 1.43 2001/08/05 23:29:36 volsung Exp $ last mod: $Id: ogg123.c,v 1.44 2001/08/07 21:37:50 volsung Exp $
********************************************************************/ ********************************************************************/
...@@ -146,6 +146,9 @@ int main(int argc, char **argv) ...@@ -146,6 +146,9 @@ int main(int argc, char **argv)
exit(1); exit(1);
case 'b': case 'b':
opt.buffer_size = atoi(optarg) / (BUFFER_CHUNK_SIZE / 1024); opt.buffer_size = atoi(optarg) / (BUFFER_CHUNK_SIZE / 1024);
if (opt.buffer_size == 1)
opt.buffer_size = 0; /* Hack to work around boundary case in
buffering code. FIXME! */
break; break;
case 'd': case 'd':
temp_driver_id = ao_driver_id(optarg); temp_driver_id = ao_driver_id(optarg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment