[xiph-cvs] cvs commit: ices/src mp3.c
Brendan
brendan at xiph.org
Thu Mar 13 15:06:14 PST 2003
brendan 03/03/13 18:06:14
Modified: src mp3.c
Log:
Old-fashioned (as of yesterday) check for empty buffer never succeeded.
Revision Changes Path
1.23 +2 -2 ices/src/mp3.c
Index: mp3.c
===================================================================
RCS file: /cvs/ice/ices/src/mp3.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- mp3.c 12 Mar 2003 12:12:58 -0000 1.22
+++ mp3.c 13 Mar 2003 23:06:14 -0000 1.23
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: mp3.c,v 1.22 2003/03/12 12:12:58 brendan Exp $
+ * $Id: mp3.c,v 1.23 2003/03/13 23:06:14 brendan Exp $
*/
#include "definitions.h"
@@ -114,7 +114,7 @@
ices_id3v2_parse (source);
/* refill buffer if ID3v2 parsing consumed it */
- if (!mp3_data->len) {
+ if (!mp3_data->buf) {
buffer = (unsigned char*) malloc (MP3_BUFFER_SIZE);
len = source->read (source, buffer, MP3_BUFFER_SIZE);
mp3_data->buf = buffer;
<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