Changeset 196:5625b89335c7 in roaraudio for roard/codecfilter_cmd.c
- Timestamp:
- 07/20/08 21:30:58 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_cmd.c
r172 r196 3 3 #include "roard.h" 4 4 5 int cf_cmd_open(CODECFILTER_USERDATA_T * inst, int codec, 6 struct roar_stream_server * info, 7 struct roar_codecfilter * filter) { 8 int socks[2]; 9 10 if ( socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1 ) { 11 return -1; 12 } 13 14 if ( lib_run_bg(filter->options, ((struct roar_stream*)info)->fh, socks[1], ROAR_STDERR) == -1 ) 15 return -1; 16 17 ((struct roar_stream*)info)->fh = socks[0]; 18 ((struct roar_stream*)info)->info.codec = ROAR_CODEC_DEFAULT; 19 close(socks[1]); 20 21 info->codecfilter = -1; 22 23 return 0; 24 } 25 5 26 //ll
Note: See TracChangeset
for help on using the changeset viewer.