Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f0760804
authored
Jan 15, 2021
by
ibaker
Committed by
Ian Baker
Jan 15, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Default `SingleSampleMediaSource.treatLoadErrorsAsEndOfStream` to true
Issue: #8430 PiperOrigin-RevId: 351971671
parent
77a55964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/source/SingleSampleMediaSource.java
RELEASENOTES.md
View file @
f0760804
...
@@ -119,6 +119,8 @@
...
@@ -119,6 +119,8 @@
*
Remove
`ExoPlaybackException.OutOfMemoryError`
.
*
Remove
`ExoPlaybackException.OutOfMemoryError`
.
*
Remove
`setVideoDecoderOutputBufferRenderer`
from Player API. Clients
*
Remove
`setVideoDecoderOutputBufferRenderer`
from Player API. Clients
should use
`setOutputSurface`
directly instead.
should use
`setOutputSurface`
directly instead.
*
Default
`SingleSampleMediaSource.treatLoadErrorsAsEndOfStream`
to
`true`
(
[
#8430
](
https://github.com/google/ExoPlayer/issues/8430
)
).
*
Extractors:
*
Extractors:
*
Populate codecs string for H.264/AVC in MP4, Matroska and FLV streams to
*
Populate codecs string for H.264/AVC in MP4, Matroska and FLV streams to
allow decoder capability checks based on codec profile/level
allow decoder capability checks based on codec profile/level
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/SingleSampleMediaSource.java
View file @
f0760804
...
@@ -55,6 +55,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
...
@@ -55,6 +55,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
public
Factory
(
DataSource
.
Factory
dataSourceFactory
)
{
public
Factory
(
DataSource
.
Factory
dataSourceFactory
)
{
this
.
dataSourceFactory
=
checkNotNull
(
dataSourceFactory
);
this
.
dataSourceFactory
=
checkNotNull
(
dataSourceFactory
);
loadErrorHandlingPolicy
=
new
DefaultLoadErrorHandlingPolicy
();
loadErrorHandlingPolicy
=
new
DefaultLoadErrorHandlingPolicy
();
treatLoadErrorsAsEndOfStream
=
true
;
}
}
/**
/**
...
@@ -118,7 +119,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
...
@@ -118,7 +119,7 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
/**
/**
* Sets whether load errors will be treated as end-of-stream signal (load errors will not be
* Sets whether load errors will be treated as end-of-stream signal (load errors will not be
* propagated). The default value is
fals
e.
* propagated). The default value is
tru
e.
*
*
* @param treatLoadErrorsAsEndOfStream If true, load errors will not be propagated by sample
* @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
* streams, treating them as ended instead. If false, load errors will be propagated
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment