Changeset 2361:6cd94216bb06 in roaraudio


Ignore:
Timestamp:
08/15/09 00:52:41 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

only set nonblock in case sync really means nonblock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2342 r2361  
    281281 struct roar_stream        * s; 
    282282 int dir; 
     283 int nonblock = 1; 
    283284 
    284285 if ( (s = ROAR_STREAM(ss = g_streams[id])) == NULL ) 
     
    337338 
    338339 if ( g_config->streams[dir].flags & ROAR_FLAG_SYNC ) { 
     340  switch (dir) { 
     341   case ROAR_DIR_BRIDGE: 
     342   case ROAR_DIR_MIDI_OUT: 
     343    break; 
     344   default: 
     345     nonblock = 0; 
     346    break; 
     347  } 
     348 } 
     349 
     350 
     351 if ( !nonblock ) { 
    339352  ss->ready = 1; 
    340353  return 0; 
Note: See TracChangeset for help on using the changeset viewer.