Changeset 1476:bcb075f757c8 in roaraudio for libroar/simple.c
- Timestamp:
- 03/30/09 19:40:10 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r1470 r1476 99 99 int fh; 100 100 101 if ( (fh = roar_simple_stream_obj(s, rate, channels, bits, codec, NULL /* server, we hope this goes ok here... */,101 if ( (fh = roar_simple_stream_obj(s, rate, channels, bits, codec, NULL /* server, we hope this is ok here... */, 102 102 dir, "libroar temp stream")) == -1 ) 103 103 return -1; 104 104 105 105 if ( roar_stream_attach_simple(con, s, roar_get_clientid(con)) == -1 ) { 106 #ifdef ROAR_HAVE_IO_POSIX 106 107 close(fh); 108 #endif /* no else as we return -1 anyway */ 107 109 return -1; 108 110 } … … 143 145 #endif 144 146 147 #ifdef ROAR_HAVE_BSDSOCKETS 145 148 if ( getsockname(con->fh, (struct sockaddr *)&socket_addr, &len) == -1 ) { 146 149 return -1; 147 150 } 151 #else 152 return -1; 153 #endif 148 154 149 155 if ( len == 0 ) { … … 323 329 324 330 int roar_simple_close(int fh) { 331 #ifdef ROAR_HAVE_IO_POSIX 325 332 return close(fh); 333 #else 334 return -1; 335 #endif 326 336 } 327 337
Note: See TracChangeset
for help on using the changeset viewer.