Changeset 2341:b4bff5863ff7 in roaraudio


Ignore:
Timestamp:
08/13/09 22:16:16 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

sync default not for specific dirs but depending on the actual default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2337 r2341  
    442442    break; 
    443443 
    444    // the fh is updated as soon as teh fh get ready: 
    445    case ROAR_DIR_FILTER: 
    446     break; 
    447  
    448444   // normal behavor (vio blocking): 
    449445   default: 
    450      if ( streams_set_sync(id, 1) == -1 ) 
    451       flag -= ROAR_FLAG_SYNC; 
     446     // the fh is updated as soon as the fh get ready in case the default ask to set sync 
     447     if ( !g_streams[id]->ready && !(g_config->streams[ROAR_STREAM(g_streams[id])->dir]-flags & ROAR_FLAG_SYNC) ) { 
     448      if ( streams_set_sync(id, 1) == -1 ) 
     449       flag -= ROAR_FLAG_SYNC; 
     450     } 
    452451  } 
    453452 } 
Note: See TracChangeset for help on using the changeset viewer.