Changeset 1660:99bfd21f00ef in roaraudio for libroar/stream.c
- Timestamp:
- 05/08/09 16:56:40 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/stream.c
r1475 r1660 203 203 int roar_stream_passfh (struct roar_connection * con, struct roar_stream * s, int fh) { 204 204 struct roar_message m; 205 int confh; 205 206 206 207 m.cmd = ROAR_CMD_PASSFH; … … 210 211 211 212 ROAR_DBG("roar_stream_passfh(con={.fh=%i,...}, s={.id=%i,...}, fh=%i) = ?", con->fh, s->id, fh); 213 214 if ( (confh = roar_get_connection_fh(con)) == -1 ) 215 return -1; 212 216 213 217 if ( roar_send_message(con, &m, NULL) == -1 ) { … … 218 222 ROAR_DBG("roar_stream_passfh(*): msg send"); 219 223 220 if ( roar_socket_send_fh(con ->fh, fh, NULL, 0) == -1 )224 if ( roar_socket_send_fh(confh, fh, NULL, 0) == -1 ) 221 225 return -1; 222 226
Note: See TracChangeset
for help on using the changeset viewer.