Changeset 1125:b4e6078fc699 in roaraudio


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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio.c

    r1118 r1125  
    149149  return 0; 
    150150 
    151  return roar_vio_sync(vio); 
     151 roar_vio_sync(vio); 
     152 
     153 return 0; 
    152154} 
    153155 
  • 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.