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
141568ab
authored
Jan 22, 2017
by
Julian Cable
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
better merge
parent
6ec840cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
library/src/main/java/com/google/android/exoplayer2/text/SubtitleDecoderFactory.java
library/src/main/java/com/google/android/exoplayer2/text/SubtitleDecoderFactory.java
View file @
141568ab
...
...
@@ -84,20 +84,13 @@ public interface SubtitleDecoderFactory {
if
(
clazz
==
null
)
{
throw
new
IllegalArgumentException
(
"Attempted to create decoder for unsupported format"
);
}
<<<<<<<
HEAD
if
(
clazz
==
SSADecoder
.
class
)
{
if
(
format
.
sampleMimeType
.
equals
(
MimeTypes
.
TEXT_SSA
))
{
byte
[]
header
=
format
.
initializationData
.
get
(
1
);
String
dlgfmt
=
new
String
(
format
.
initializationData
.
get
(
0
),
"UTF-8"
);
return
clazz
.
asSubclass
(
SubtitleDecoder
.
class
).
getConstructor
(
byte
[].
class
,
String
.
class
)
.
newInstance
(
header
,
dlgfmt
);
}
if
(
clazz
==
Cea608Decoder
.
class
)
{
return
clazz
.
asSubclass
(
SubtitleDecoder
.
class
).
getConstructor
(
String
.
class
,
Integer
.
TYPE
)
.
newInstance
(
format
.
sampleMimeType
,
format
.
accessibilityChannel
);
}
else
{
=======
if
(
format
.
sampleMimeType
.
equals
(
MimeTypes
.
APPLICATION_CEA608
)
else
if
(
format
.
sampleMimeType
.
equals
(
MimeTypes
.
APPLICATION_CEA608
)
||
format
.
sampleMimeType
.
equals
(
MimeTypes
.
APPLICATION_MP4CEA608
))
{
return
clazz
.
asSubclass
(
SubtitleDecoder
.
class
).
getConstructor
(
String
.
class
,
Integer
.
TYPE
)
.
newInstance
(
format
.
sampleMimeType
,
format
.
accessibilityChannel
);
...
...
@@ -105,7 +98,6 @@ public interface SubtitleDecoderFactory {
return
clazz
.
asSubclass
(
SubtitleDecoder
.
class
).
getConstructor
(
Integer
.
TYPE
)
.
newInstance
(
format
.
accessibilityChannel
);
}
else
{
>>>>>>>
upstream
/
dev
-
v2
return
clazz
.
asSubclass
(
SubtitleDecoder
.
class
).
getConstructor
().
newInstance
();
}
}
catch
(
Exception
e
)
{
...
...
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