Changeset 3171

Show
Ignore:
Timestamp:
2007-07-29 23:19:23 (1 year ago)
Author:
conrad
Message:

handle negative serialno in oggz_get_stream(). Reported by Erik de Castro Lopo,
patch modified to continue to handle special -1 serialno value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • liboggz/trunk/src/liboggz/oggz.c

    r2885 r3171  
    302302oggz_get_stream (OGGZ * oggz, long serialno) 
    303303{ 
    304   if (serialno < 0) return NULL; 
     304  if (serialno == -1) return NULL; 
    305305 
    306306  return oggz_vector_find_with (oggz->streams, oggz_find_stream, serialno);