Changeset 5148:73d76a74be61 in roaraudio for libroar/simple.c
- Timestamp:
- 10/15/11 14:29:29 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r5118 r5148 73 73 struct roar_connection con; 74 74 int ret; 75 int safe_error; 75 76 76 77 roar_debug_warn_sysio("roar_simple_stream_obj", NULL, NULL); … … 83 84 84 85 if ( roar_stream_new(s, rate, channels, bits, codec) == -1 ) { 86 safe_error = roar_error; 85 87 roar_disconnect(&con); 88 roar_err_set(safe_error); 86 89 return -1; 87 90 } 88 91 89 92 if ( roar_stream_connect2(&con, s, dir, -1) == -1 ) { 93 safe_error = roar_error; 90 94 roar_disconnect(&con); 95 roar_err_set(safe_error); 91 96 return -1; 92 97 } 93 98 94 99 if ( roar_stream_exec(&con, s) == -1 ) { 100 safe_error = roar_error; 95 101 roar_disconnect(&con); 102 roar_err_set(safe_error); 96 103 return -1; 97 104 } … … 99 106 roar_libroar_nowarn(); 100 107 if ( (ret = roar_get_connection_fh(&con)) == -1 ) { 108 safe_error = roar_error; 101 109 roar_libroar_warn(); 102 110 roar_disconnect(&con); 111 roar_err_set(safe_error); 103 112 return -1; 104 113 }
Note: See TracChangeset
for help on using the changeset viewer.