Changeset 1163:ce49355d789e in roaraudio for libroar/simple.c
- Timestamp:
- 01/24/09 02:13:31 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r1161 r1163 94 94 95 95 return con.fh; 96 } 97 98 int roar_simple_new_stream_attachexeced_obj (struct roar_connection * con, struct roar_stream * s, int rate, int channels, int bits, int codec, int dir) { 99 int fh; 100 101 if ( (fh = roar_simple_stream_obj(s, rate, channels, bits, codec, NULL /* server, we hope this goes ok here... */, 102 dir, "libroar temp stream")) == -1 ) 103 return -1; 104 105 if ( roar_stream_attach_simple(con, s, roar_get_clientid(con)) == -1 ) { 106 close(fh); 107 return -1; 108 } 109 110 return fh; 96 111 } 97 112 … … 185 200 if ( select(listen + 1, &fds, &fds, &fds, &timeout) < 1 ) { 186 201 close(listen); 202 203 // we don't need to check the content as we know it failed... 204 if ( roar_recv_message(con, &mes, NULL) == -1 ) 205 return -1; 206 187 207 if ( roar_kick(con, ROAR_OT_STREAM, s->id) == -1 ) 188 208 return -1; 189 209 190 return -1;210 return roar_simple_new_stream_attachexeced_obj(con, s, rate, channels, bits, codec, dir); 191 211 } 192 212
Note: See TracChangeset
for help on using the changeset viewer.