Changeset 744:ad382e33d5d0 in roaraudio
- Timestamp:
- 09/05/08 01:01:00 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_vorbis.c
r743 r744 44 44 ROAR_WARN("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p): r=%i", ptr, size, nmemb, datasource, r); 45 45 46 errno = 0; 47 46 48 if ( r == -1 ) 47 49 return 0; … … 49 51 if ( r > 0 ) 50 52 errno = 0; 53 54 r /= size; 51 55 52 return r/nmemb; 56 ROAR_WARN("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p) = %i", ptr, size, nmemb, datasource, r); 57 return r; 53 58 } 54 59 … … 237 242 self->opened++; 238 243 if ( self->opened == 16 ) { 244 239 245 //printf("cf_vorbis_read(*): opening...\n"); 240 246 //int ov_open_callbacks(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks); … … 258 264 while (todo) { 259 265 r = ov_read(&(self->vf), buf+done, todo, 0, 2, 1, &(self->current_section)); 260 if ( r < 1 ) { 266 if ( r == OV_HOLE ) { 267 ROAR_WARN("cf_vorbis_read(*): Hole in stream"); 268 } else if ( r < 1 ) { 261 269 break; 262 270 } else { … … 271 279 } 272 280 273 281 //printf("ov_read(*) = %i\n", done); 274 282 275 283 if ( done == 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.