Changeset 1660:99bfd21f00ef in roaraudio for libroar/file.c


Ignore:
Timestamp:
05/08/09 16:56:40 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

changed name of fh in con struct to fh, this should all apps requiring the private member to fail to build, added function to get fh, change code to use them both everythere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/file.c

    r1474 r1660  
    203203 struct roar_stream localstream[1]; 
    204204 
     205 // FIXME: check error cases 
     206 
    205207 if ( !s ) 
    206208  s = localstream; 
     
    255257  } 
    256258 
    257   ROAR_SHUTDOWN(con->fh, SHUT_RD); 
    258  
    259   out = con->fh; 
     259  if ( (out = roar_get_connection_fh(con)) == -1 ) { 
     260   close(in); 
     261   return -1; 
     262  } 
     263 
     264  ROAR_SHUTDOWN(out, SHUT_RD); 
    260265 } else { 
    261266  if ( !(passfh && seek) ) { 
Note: See TracChangeset for help on using the changeset viewer.