mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Merge the handling of FileDataSourceException and DataSourceException.
FileDataSourceException subclasses DataSourceException and can be handled in the same fashion. PiperOrigin-RevId: 385983103
This commit is contained in:
parent
e4c9078a0c
commit
6f504264e0
1 changed files with 0 additions and 3 deletions
|
|
@ -49,7 +49,6 @@ import com.google.android.exoplayer2.trackselection.TrackSelector;
|
|||
import com.google.android.exoplayer2.trackselection.TrackSelectorResult;
|
||||
import com.google.android.exoplayer2.upstream.BandwidthMeter;
|
||||
import com.google.android.exoplayer2.upstream.DataSourceException;
|
||||
import com.google.android.exoplayer2.upstream.FileDataSource;
|
||||
import com.google.android.exoplayer2.util.Assertions;
|
||||
import com.google.android.exoplayer2.util.Clock;
|
||||
import com.google.android.exoplayer2.util.HandlerWrapper;
|
||||
|
|
@ -577,8 +576,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
}
|
||||
} catch (DrmSession.DrmSessionException e) {
|
||||
handleIoException(e, e.errorCode);
|
||||
} catch (FileDataSource.FileDataSourceException e) {
|
||||
handleIoException(e, e.reason);
|
||||
} catch (ParserException e) {
|
||||
@ErrorCode int errorCode;
|
||||
if (e.dataType == C.DATA_TYPE_MEDIA) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue