mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Don't wrap FileDataSourceException in FileDataSourceException.
Instead just forward the existing exception. PiperOrigin-RevId: 373145328
This commit is contained in:
parent
0c19506d7d
commit
74b126dfc4
@ -92,6 +92,8 @@ public final class FileDataSource extends BaseDataSource {
|
||||
if (bytesRemaining < 0) {
|
||||
throw new DataSourceException(DataSourceException.POSITION_OUT_OF_RANGE);
|
||||
}
|
||||
} catch (FileDataSourceException e) {
|
||||
throw e;
|
||||
} catch (IOException e) {
|
||||
throw new FileDataSourceException(e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user