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
1c1f5af5
authored
Oct 28, 2015
by
Rik Heijdens
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Changed the use of the name variable
parent
10f3be6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
library/src/main/java/com/google/android/exoplayer/hls/HlsPlaylistParser.java
library/src/main/java/com/google/android/exoplayer/hls/HlsPlaylistParser.java
View file @
1c1f5af5
...
@@ -153,13 +153,12 @@ public final class HlsPlaylistParser implements UriLoadable.Parser<HlsPlaylist>
...
@@ -153,13 +153,12 @@ public final class HlsPlaylistParser implements UriLoadable.Parser<HlsPlaylist>
String
type
=
HlsParserUtil
.
parseStringAttr
(
line
,
TYPE_ATTR_REGEX
,
TYPE_ATTR
);
String
type
=
HlsParserUtil
.
parseStringAttr
(
line
,
TYPE_ATTR_REGEX
,
TYPE_ATTR
);
if
(
SUBTITLES_TYPE
.
equals
(
type
))
{
if
(
SUBTITLES_TYPE
.
equals
(
type
))
{
// We assume all subtitles belong to the same group.
// We assume all subtitles belong to the same group.
n
ame
=
HlsParserUtil
.
parseStringAttr
(
line
,
NAME_ATTR_REGEX
,
NAME_ATTR
);
String
subtitleN
ame
=
HlsParserUtil
.
parseStringAttr
(
line
,
NAME_ATTR_REGEX
,
NAME_ATTR
);
String
uri
=
HlsParserUtil
.
parseStringAttr
(
line
,
URI_ATTR_REGEX
,
URI_ATTR
);
String
uri
=
HlsParserUtil
.
parseStringAttr
(
line
,
URI_ATTR_REGEX
,
URI_ATTR
);
String
language
=
HlsParserUtil
.
parseOptionalStringAttr
(
line
,
LANGUAGE_ATTR_REGEX
);
String
language
=
HlsParserUtil
.
parseOptionalStringAttr
(
line
,
LANGUAGE_ATTR_REGEX
);
boolean
isDefault
=
HlsParserUtil
.
parseOptionalBooleanAttr
(
line
,
DEFAULT_ATTR_REGEX
);
boolean
isDefault
=
HlsParserUtil
.
parseOptionalBooleanAttr
(
line
,
DEFAULT_ATTR_REGEX
);
boolean
autoSelect
=
HlsParserUtil
.
parseOptionalBooleanAttr
(
line
,
AUTOSELECT_ATTR_REGEX
);
boolean
autoSelect
=
HlsParserUtil
.
parseOptionalBooleanAttr
(
line
,
AUTOSELECT_ATTR_REGEX
);
subtitles
.
add
(
new
Subtitle
(
name
,
uri
,
language
,
isDefault
,
autoSelect
));
subtitles
.
add
(
new
Subtitle
(
subtitleName
,
uri
,
language
,
isDefault
,
autoSelect
));
name
=
null
;
}
else
{
}
else
{
// TODO: Support other types of media tag.
// TODO: Support other types of media tag.
}
}
...
...
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