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
0d79208c
authored
Dec 05, 2018
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #5147 from zsmatyas:dev-v2
PiperOrigin-RevId: 224114911
parents
22a8aa31
d1e49f20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/text/cea/Cea608Decoder.java
library/core/src/main/java/com/google/android/exoplayer2/text/cea/Cea608Decoder.java
View file @
0d79208c
...
...
@@ -560,6 +560,14 @@ public final class Cea608Decoder extends CeaDecoder {
int
oldCaptionMode
=
this
.
captionMode
;
this
.
captionMode
=
captionMode
;
if
(
captionMode
==
CC_MODE_PAINT_ON
)
{
// Switching to paint-on mode should have no effect except to select the mode.
for
(
int
i
=
0
;
i
<
cueBuilders
.
size
();
i
++)
{
cueBuilders
.
get
(
i
).
setCaptionMode
(
captionMode
);
}
return
;
}
// Clear the working memory.
resetCueBuilders
();
if
(
oldCaptionMode
==
CC_MODE_PAINT_ON
||
captionMode
==
CC_MODE_ROLL_UP
...
...
@@ -664,6 +672,10 @@ public final class Cea608Decoder extends CeaDecoder {
tabOffset
=
0
;
}
public
void
setCaptionMode
(
int
captionMode
)
{
this
.
captionMode
=
captionMode
;
}
public
void
setCaptionRowCount
(
int
captionRowCount
)
{
this
.
captionRowCount
=
captionRowCount
;
}
...
...
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