Changeset 3313:24bb2b78bb91 in roaraudio
- Timestamp:
- 02/03/10 14:10:34 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_dstr.c
r3312 r3313 462 462 463 463 int roar_vio_dstr_set_defaults(struct roar_vio_dstr_chain * chain, int len, struct roar_vio_defaults * def, int dnum) { 464 struct _roar_vio_dstr_type * type; 464 465 struct roar_vio_dstr_chain * c, * next; 465 466 int i; … … 684 685 break; 685 686 default: 686 // TODO: FIXME: add code to use functions from type struct 687 _roar_vio_dstr_init_otherlibs(); 688 return -1; 687 if ( (type = roar_vio_dstr_get_by_type(c->type)) == NULL ) { 688 return -1; 689 } 690 691 if ( type->setdef == NULL ) 692 _roar_vio_dstr_init_otherlibs(); 693 694 if ( type->setdef == NULL ) { 695 return -1; 696 } 697 698 if ( type->setdef(c, next) == -1 ) { 699 return -1; 700 } 689 701 } 690 702 … … 713 725 int roar_vio_dstr_build_chain(struct roar_vio_dstr_chain * chain, struct roar_vio_calls * calls, 714 726 struct roar_vio_calls * vio) { 727 struct _roar_vio_dstr_type * type; 715 728 struct roar_vio_dstr_chain * c; 716 729 struct roar_vio_defaults * def; … … 840 853 break; 841 854 default: 842 // TODO: FIXME: add code to use functions from type struct 843 _roar_vio_dstr_init_otherlibs(); 844 _ret(-1); 855 if ( (type = roar_vio_dstr_get_by_type(c->type)) == NULL ) { 856 _ret(-1); 857 } 858 859 if ( type->openvio == NULL ) 860 _roar_vio_dstr_init_otherlibs(); 861 862 if ( type->openvio == NULL ) { 863 _ret(-1); 864 } 865 866 if ( type->openvio(tc, prev, c) == -1 ) { 867 _ret(-1); 868 } 845 869 } 846 870
Note: See TracChangeset
for help on using the changeset viewer.