Changeset 1812:d46222e215af in roaraudio
- Timestamp:
- 05/22/09 18:20:40 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/req.c
r1809 r1812 83 83 int stream; 84 84 struct roar_stream * s; 85 struct roar_stream * source_stream; 85 86 struct roar_audio_info * info; 87 struct roar_audio_info * source_info; 86 88 87 89 if ((stream = streams_new()) == -1 ) … … 114 116 info->bits = 0; 115 117 info->rate = 0; 118 119 break; 120 case ROAR_DIR_THRU: 121 if ( streams_get(ROAR_STREAM(s)->pos_rel_id, (struct roar_stream_server **)&source_stream) == -1 ) { 122 streams_delete(stream); 123 return -1; 124 } 125 126 info = &(ROAR_STREAM(s)->info); 127 source_info = &(ROAR_STREAM(source_stream)->info); 128 129 info->channels = source_info->channels; 130 info->bits = source_info->bits; 131 info->rate = source_info->rate; 132 info->codec = source_info->codec; 133 ROAR_STREAM_SERVER(s)->codec_orgi = ROAR_STREAM_SERVER(source_info)->codec_orgi; 116 134 117 135 break;
Note: See TracChangeset
for help on using the changeset viewer.