[xiph-commits] r3171 - liboggz/trunk/src/liboggz
conrad at svn.annodex.net
conrad at svn.annodex.net
Sun Jul 29 23:19:23 PDT 2007
Author: conrad
Date: 2007-07-29 23:19:23 -0700 (Sun, 29 Jul 2007)
New Revision: 3171
Modified:
liboggz/trunk/src/liboggz/oggz.c
Log:
handle negative serialno in oggz_get_stream(). Reported by Erik de Castro Lopo,
patch modified to continue to handle special -1 serialno value.
Modified: liboggz/trunk/src/liboggz/oggz.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz.c 2007-07-26 07:44:06 UTC (rev 3170)
+++ liboggz/trunk/src/liboggz/oggz.c 2007-07-30 06:19:23 UTC (rev 3171)
@@ -301,7 +301,7 @@
oggz_stream_t *
oggz_get_stream (OGGZ * oggz, long serialno)
{
- if (serialno < 0) return NULL;
+ if (serialno == -1) return NULL;
return oggz_vector_find_with (oggz->streams, oggz_find_stream, serialno);
}
More information about the commits
mailing list