[xiph-cvs] cvs commit: ices/src stream.c
Michael Smith
msmith at xiph.org
Wed Nov 7 05:30:04 PST 2001
msmith 01/11/07 05:30:04
Modified: src stream.c
Log:
Possible fix for memory leaks - under various (decidedly non-fatal, and
possibly normal for some setups) conditions it might have been leaking
buffers.
Revision Changes Path
1.8 +3 -6 ices/src/stream.c
Index: stream.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/stream.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- stream.c 2001/10/20 22:42:47 1.7
+++ stream.c 2001/11/07 13:30:03 1.8
@@ -1,7 +1,7 @@
/* stream.c
* - Core streaming functions/main loop.
*
- * $Id: stream.c,v 1.7 2001/10/20 22:42:47 jack Exp $
+ * $Id: stream.c,v 1.8 2001/11/07 13:30:03 msmith Exp $
*
* Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
*
@@ -135,15 +135,12 @@
ret = process_and_send_buffer(sdsc, buffer);
- /* No data produced */
+ /* No data produced, do nothing */
if(ret == -1)
- continue;
+ ;
/* Fatal error */
else if(ret == -2)
- {
stream->buffer_failures = MAX_ERRORS+1;
- continue;
- }
/* Non-fatal shout error */
else if(ret == 0)
{
--- >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