Changeset 3238:17ff06e30255 in roaraudio for libroarsndio
- Timestamp:
- 01/28/10 09:44:35 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroarsndio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/libroarsndio.c
r3237 r3238 166 166 167 167 int sio_eof (struct sio_hdl * hdl) { 168 return 0;168 return hdl->ioerror; 169 169 } 170 170 -
libroarsndio/stream.c
r3237 r3238 102 102 103 103 hdl->stream_opened = 1; 104 hdl->ioerror = 0; 104 105 105 106 return 1; … … 131 132 return 0; 132 133 133 if ( (ret = roar_vio_read(&(hdl->svio), addr, nbytes)) < 0 ) 134 if ( (ret = roar_vio_read(&(hdl->svio), addr, nbytes)) < 0 ) { 135 hdl->ioerror = 1; 134 136 return 0; 137 } 138 139 if ( hdl->nonblock ) 140 hdl->ioerror = 0; 135 141 136 142 return ret; … … 145 151 return 0; 146 152 147 if ( (ret = roar_vio_write(&(hdl->svio), (void*) addr, nbytes)) < 0 ) 153 if ( (ret = roar_vio_write(&(hdl->svio), (void*) addr, nbytes)) < 0 ) { 154 hdl->ioerror = 1; 148 155 return 0; 156 } 157 158 if ( hdl->nonblock ) 159 hdl->ioerror = 0; 149 160 150 161 if ( hdl->on_move != NULL ) {
Note: See TracChangeset
for help on using the changeset viewer.