Changeset 4014:2fee6bf2dc0c in roaraudio for roarclients/roarvorbis.c
- Timestamp:
- 07/01/10 20:04:36 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarvorbis.c
r3843 r4014 251 251 if ( in == NULL ) { 252 252 roar_disconnect(&con); 253 fclose(in); 253 254 return 1; 254 255 } … … 261 262 fprintf(stderr,"Input does not appear to be an Ogg bitstream.\n"); 262 263 roar_disconnect(&con); 264 fclose(in); 263 265 return 1; 264 266 } … … 269 271 if ( roar_vio_open_dstr(&vclt, vcltfile, &def, 1) == -1 ) { 270 272 fprintf(stderr, "Error: can not open file: %s: %s\n", k, strerror(errno)); 273 fclose(in); 271 274 return 1; 272 275 } … … 280 283 281 284 if ( last_section != current_section ) 282 if ( update_stream(&con, &s, &vio, &vf, file, &info, vcltfile == NULL ? NULL : &vclt) == -1 ) 285 if ( update_stream(&con, &s, &vio, &vf, file, &info, vcltfile == NULL ? NULL : &vclt) == -1 ) { 286 fclose(in); 283 287 return 1; 288 } 284 289 285 290 last_section = current_section; … … 306 311 } 307 312 313 fclose(in); 314 308 315 return 0; 309 316 #endif
Note: See TracChangeset
for help on using the changeset viewer.