Changeset 5608:584b36c566e2 in roaraudio for libroar/basic.c
- Timestamp:
- 07/31/12 15:31:35 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/basic.c
r5471 r5608 510 510 return -1; 511 511 512 // specal hack to set an il egal value used internaly in libroar:512 // specal hack to set an illegal value used internaly in libroar: 513 513 if ( fh == -2 ) 514 514 fh = -1; … … 516 516 if ( roar_vio_open_fh_socket(con->viocon, fh) != -1 ) { 517 517 con->flags |= ROAR_CON_FLAGS_VIO; 518 } else { 519 return -1; 518 520 } 519 521 … … 543 545 544 546 struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con) { 545 if ( con == NULL ) 547 if ( con == NULL ) { 548 roar_err_set(ROAR_ERROR_FAULT); 546 549 return NULL; 550 } 547 551 548 552 if ( con->flags & ROAR_CON_FLAGS_VIO ) … … 551 555 // TODO: try to open the VIO. 552 556 557 roar_err_set(ROAR_ERROR_BADFH); 553 558 return NULL; 554 559 }
Note: See TracChangeset
for help on using the changeset viewer.