Changeset 3857:8ed6d81a32d6 in roaraudio for libroar/simple.c
- Timestamp:
- 05/16/10 23:05:16 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r3812 r3857 93 93 } 94 94 95 roar_libroar_nowarn(); 95 96 if ( (ret = roar_get_connection_fh(&con)) == -1 ) { 97 roar_libroar_warn(); 96 98 roar_disconnect(&con); 97 99 return -1; 98 100 } 101 roar_libroar_warn(); 99 102 100 103 if ( dir == ROAR_DIR_PLAY ) { … … 128 131 int roar_simple_new_stream (struct roar_connection * con, int rate, int channels, int bits, int codec, int dir) { 129 132 struct roar_stream s; 130 return roar_simple_new_stream_obj(con, &s, rate, channels, bits, codec, dir); 133 int ret; 134 135 roar_debug_warn_sysio("roar_simple_new_stream", "roar_vio_simple_new_stream_obj", NULL); 136 137 roar_libroar_nowarn(); 138 ret = roar_simple_new_stream_obj(con, &s, rate, channels, bits, codec, dir); 139 roar_libroar_warn(); 140 141 return ret; 131 142 } 132 143 … … 170 181 171 182 #ifdef ROAR_HAVE_BSDSOCKETS 183 roar_libroar_nowarn(); 172 184 if ( getsockname(roar_get_connection_fh(con), (struct sockaddr *)&socket_addr, &len) == -1 ) { 173 return -1; 174 } 185 roar_libroar_warn(); 186 return -1; 187 } 188 roar_libroar_warn(); 175 189 #else 176 190 return -1;
Note: See TracChangeset
for help on using the changeset viewer.