Changeset 3292:af91815a4426 in roaraudio


Ignore:
Timestamp:
02/01/10 20:36:09 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

pass opts of last dstr to roar_vio_open_default()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_dstr.h

    r3291 r3292  
    168168int     roar_vio_dstr_init_defaults_c (struct roar_vio_defaults * def, int type, struct roar_vio_defaults * odef, int o_flags); 
    169169 
    170 int     roar_vio_open_default (struct roar_vio_calls * calls, struct roar_vio_defaults * def); 
     170int     roar_vio_open_default (struct roar_vio_calls * calls, struct roar_vio_defaults * def, char * opts); 
    171171 
    172172int     roar_vio_open_dstr    (struct roar_vio_calls * calls, char * dstr, struct roar_vio_defaults * def, int dnum); 
  • libroar/vio_dstr.c

    r3291 r3292  
    190190 
    191191#ifndef ROAR_WITHOUT_VIO_DSTR 
    192 int     roar_vio_open_default (struct roar_vio_calls * calls, struct roar_vio_defaults * def) { 
     192int     roar_vio_open_default (struct roar_vio_calls * calls, struct roar_vio_defaults * def, char * opts) { 
     193 ROAR_DBG("roar_vio_open_default(calls=%p, def=%p, opts='%s') = ?", calls, def, opts); 
     194 
    193195 if ( calls == NULL || def == NULL ) 
    194196  return -1; 
     
    630632  } 
    631633 
    632   if ( roar_vio_open_default(tc, def) == -1 ) { 
     634  if ( chain->opts == NULL ) { 
     635   if ( chain[1].type != ROAR_VIO_DSTR_OBJT_EOL ) { 
     636    chain->opts = chain[1].opts; 
     637   } 
     638  } 
     639 
     640  if ( roar_vio_open_default(tc, def, chain->opts) == -1 ) { 
    633641   _ret(-1); 
    634642  } 
Note: See TracChangeset for help on using the changeset viewer.