8
8
use std:: cmp:: min;
9
9
use std:: collections:: HashSet ;
10
10
11
- use symphonia_core:: errors:: { decode_error, Error , IoErrorKind , Result } ;
11
+ use symphonia_core:: errors:: SymphoniaError as Error ;
12
+ use symphonia_core:: errors:: { decode_error, Result } ;
12
13
use symphonia_core:: io:: { BitReaderRtl , ReadBitsRtl } ;
13
14
14
15
use super :: codebook:: VorbisCodebook ;
@@ -92,7 +93,7 @@ macro_rules! io_try_or_ret {
92
93
// An end-of-bitstream error is classified under ErrorKind::Other. This condition
93
94
// should not be treated as an error, rather, it should return from the function
94
95
// immediately without error.
95
- Err ( Error :: IoError ( IoErrorKind :: Other , _ ) ) => return Ok ( ( ) ) ,
96
+ Err ( Error :: EndOfFile ) => return Ok ( ( ) ) ,
96
97
Err ( e) => return Err ( e. into( ) ) ,
97
98
}
98
99
} ;
@@ -105,7 +106,7 @@ macro_rules! try_or_ret {
105
106
// An end-of-bitstream error is classified under ErrorKind::Other. This condition
106
107
// should not be treated as an error, rather, it should return from the function
107
108
// immediately without error.
108
- Err ( Error :: IoError ( IoErrorKind :: Other , _ ) ) => return Ok ( ( ) ) ,
109
+ Err ( Error :: EndOfFile ) => return Ok ( ( ) ) ,
109
110
Err ( e) => return Err ( e) ,
110
111
}
111
112
} ;
0 commit comments