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

Stan Seibert volsung at xiph.org
Tue Aug 7 14:37:51 PDT 2001



volsung     01/08/07 14:37:51

  Modified:    ogg123   ogg123.c
  Log:
  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.

Revision  Changes    Path
1.44      +4 -1      vorbis-tools/ogg123/ogg123.c

Index: ogg123.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/ogg123.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- ogg123.c	2001/08/05 23:29:36	1.43
+++ ogg123.c	2001/08/07 21:37:50	1.44
@@ -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 @@
             exit(1);
         case 'b':
           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;
         case 'd':
             temp_driver_id = ao_driver_id(optarg);

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