Changeset 1125:b4e6078fc699 in roaraudio for roard/streams.c


Ignore:
Timestamp:
01/17/09 01:42:58 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed display of sync flag for driver streams: may not depend on fdatasync() and do not remove it from list after streams_set_sync() is called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r1117 r1125  
    277277   return -1; 
    278278 
    279   return fdatasync(fh); 
     279  fdatasync(fh); 
     280 
     281  return 0; 
    280282 } else { 
    281283  return roar_vio_nonblock(&(g_streams[id]->vio), sync); 
     
    293295 
    294296 if ( flag & ROAR_FLAG_SYNC ) { 
    295   streams_set_sync(id, 1); 
    296   flag -= ROAR_FLAG_SYNC; 
     297  if ( streams_set_sync(id, 1) == -1 ) 
     298   flag -= ROAR_FLAG_SYNC; 
    297299 } 
    298300 
     
    316318 if ( flag & ROAR_FLAG_SYNC ) { 
    317319  streams_set_sync(id, 0); 
    318   flag -= ROAR_FLAG_SYNC; 
    319320 } 
    320321 
Note: See TracChangeset for help on using the changeset viewer.