Changeset 1904:c2d7b0a826ef in roaraudio
- Timestamp:
- 05/26/09 12:37:07 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/req.c
r1900 r1904 87 87 struct roar_audio_info * source_info; 88 88 89 ROAR_DBG("req_on_new_stream(client=%i, ...): creating stream...", client); 89 90 if ((stream = streams_new()) == -1 ) 90 91 return -1; 91 92 93 ROAR_DBG("req_on_new_stream(client=%i, ...): getting stream...", client); 92 94 if ( streams_get(stream, (struct roar_stream_server **)&s) == -1 ) { 93 95 streams_delete(stream); … … 95 97 } 96 98 99 ROAR_DBG("req_on_new_stream(client=%i, ...): set client of stream...", client); 97 100 if ( client_stream_add(client, stream) == -1 ) { 98 101 streams_delete(stream); … … 100 103 } 101 104 105 ROAR_DBG("req_on_new_stream(client=%i, ...): loading stream from message...", client); 102 106 if ( roar_stream_m2s(s, mes) == -1 ) { 103 107 streams_delete(stream); … … 105 109 } 106 110 111 ROAR_DBG("req_on_new_stream(client=%i, ...): setting id and codec of stream...", client); 107 112 ROAR_STREAM(s)->id = stream; // roar_stream_m2s() resets this 108 113 ROAR_STREAM_SERVER(s)->codec_orgi = ROAR_STREAM(s)->info.codec; 109 114 115 ROAR_DBG("req_on_new_stream(client=%i, ...): setting direction stream...", client); 110 116 // int streams_set_dir (int id, int dir, int defaults) 117 /* 111 118 if ( streams_set_dir(stream, ROAR_STREAM(s)->dir, 1) == -1 ) { 112 119 streams_delete(stream); 113 120 return -1; 114 121 } 115 122 */ 123 124 ROAR_DBG("req_on_new_stream(client=%i, ...): setting up direction specific stream settings...", client); 116 125 switch (ROAR_STREAM(s)->dir) { 117 126 case ROAR_DIR_LIGHT_IN: … … 160 169 } 161 170 171 ROAR_DBG("req_on_new_stream(client=%i, ...): returning (OK)...", client); 172 162 173 mes->cmd = ROAR_CMD_OK; 163 174 mes->stream = stream; … … 170 181 int r; 171 182 183 ROAR_DBG("req_on_exec_stream(client=%i, mes={stream=%i,...},...): execing stream", client, mes->stream); 184 172 185 if ( (r = client_stream_exec(client, mes->stream)) == -1 ) 173 186 return -1; 174 187 188 ROAR_DBG("req_on_exec_stream(client=%i, mes={stream=%i,...},...): returning (OK)...", client, mes->stream); 175 189 mes->cmd = ROAR_CMD_OK; 176 190 mes->datalen = 0;
Note: See TracChangeset
for help on using the changeset viewer.