Skip to content

Commit

Permalink
Default SingleSampleMediaSource.treatLoadErrorsAsEndOfStream to true
Browse files Browse the repository at this point in the history
Issue: #8430
PiperOrigin-RevId: 351971671
  • Loading branch information
icbaker committed Jan 15, 2021
1 parent 77a5596 commit f076080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
* Remove `ExoPlaybackException.OutOfMemoryError`.
* Remove `setVideoDecoderOutputBufferRenderer` from Player API. Clients
should use `setOutputSurface` directly instead.
* Default `SingleSampleMediaSource.treatLoadErrorsAsEndOfStream` to `true`
([#8430](https://github.com/google/ExoPlayer/issues/8430)).
* Extractors:
* Populate codecs string for H.264/AVC in MP4, Matroska and FLV streams to
allow decoder capability checks based on codec profile/level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static final class Factory {
public Factory(DataSource.Factory dataSourceFactory) {
this.dataSourceFactory = checkNotNull(dataSourceFactory);
loadErrorHandlingPolicy = new DefaultLoadErrorHandlingPolicy();
treatLoadErrorsAsEndOfStream = true;
}

/**
Expand Down Expand Up @@ -118,7 +119,7 @@ public Factory setLoadErrorHandlingPolicy(

/**
* Sets whether load errors will be treated as end-of-stream signal (load errors will not be
* propagated). The default value is false.
* propagated). The default value is true.
*
* @param treatLoadErrorsAsEndOfStream If true, load errors will not be propagated by sample
* streams, treating them as ended instead. If false, load errors will be propagated
Expand Down

0 comments on commit f076080

Please sign in to comment.