Changeset 2481:4ecb8a80a69e in roaraudio


Ignore:
Timestamp:
08/23/09 01:01:46 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use config, ROAR_LIBROAR_CONFIG_WAS_USE_EXECED

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/simple.c

    r1763 r2481  
    127127 
    128128int roar_simple_new_stream_obj (struct roar_connection * con, struct roar_stream * s, int rate, int channels, int bits, int codec, int dir) { 
     129 struct roar_libroar_config * config = roar_libroar_get_config(); 
    129130 char file[80] = {0}; 
    130131 int fh = -1, listen = -1; 
     
    150151 int socks[2]; // for socketpair() 
    151152#endif 
     153 
     154 if ( config != NULL ) { 
     155  if ( config->workaround.workarounds & ROAR_LIBROAR_CONFIG_WAS_USE_EXECED ) { 
     156   return roar_simple_new_stream_attachexeced_obj(con, s, rate, channels, bits, codec, dir); 
     157  } 
     158 } 
    152159 
    153160#ifdef ROAR_HAVE_BSDSOCKETS 
Note: See TracChangeset for help on using the changeset viewer.