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
8e1f14cb
authored
Jan 16, 2016
by
Bart van den Ende
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
resolve #1095 get language for all types, not just audio
parent
d5425bb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/smoothstreaming/SmoothStreamingManifestParser.java
library/src/main/java/com/google/android/exoplayer/smoothstreaming/SmoothStreamingManifestParser.java
View file @
8e1f14cb
...
@@ -623,6 +623,7 @@ public class SmoothStreamingManifestParser implements UriLoadable.Parser<SmoothS
...
@@ -623,6 +623,7 @@ public class SmoothStreamingManifestParser implements UriLoadable.Parser<SmoothS
index
=
parseInt
(
parser
,
KEY_INDEX
,
-
1
);
index
=
parseInt
(
parser
,
KEY_INDEX
,
-
1
);
bitrate
=
parseRequiredInt
(
parser
,
KEY_BITRATE
);
bitrate
=
parseRequiredInt
(
parser
,
KEY_BITRATE
);
language
=
(
String
)
getNormalizedAttribute
(
KEY_LANGUAGE
);
if
(
type
==
StreamElement
.
TYPE_VIDEO
)
{
if
(
type
==
StreamElement
.
TYPE_VIDEO
)
{
maxHeight
=
parseRequiredInt
(
parser
,
KEY_MAX_HEIGHT
);
maxHeight
=
parseRequiredInt
(
parser
,
KEY_MAX_HEIGHT
);
...
@@ -640,7 +641,6 @@ public class SmoothStreamingManifestParser implements UriLoadable.Parser<SmoothS
...
@@ -640,7 +641,6 @@ public class SmoothStreamingManifestParser implements UriLoadable.Parser<SmoothS
if
(
type
==
StreamElement
.
TYPE_AUDIO
)
{
if
(
type
==
StreamElement
.
TYPE_AUDIO
)
{
samplingRate
=
parseRequiredInt
(
parser
,
KEY_SAMPLING_RATE
);
samplingRate
=
parseRequiredInt
(
parser
,
KEY_SAMPLING_RATE
);
channels
=
parseRequiredInt
(
parser
,
KEY_CHANNELS
);
channels
=
parseRequiredInt
(
parser
,
KEY_CHANNELS
);
language
=
(
String
)
getNormalizedAttribute
(
KEY_LANGUAGE
);
}
else
{
}
else
{
samplingRate
=
-
1
;
samplingRate
=
-
1
;
channels
=
-
1
;
channels
=
-
1
;
...
...
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