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
80e829d7
authored
Nov 17, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix some warnings.
parent
8234a251
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/C.java
library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java
library/src/main/java/com/google/android/exoplayer/drm/StreamingDrmSessionManager.java
library/src/main/java/com/google/android/exoplayer/C.java
View file @
80e829d7
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
*/
*/
package
com
.
google
.
android
.
exoplayer
;
package
com
.
google
.
android
.
exoplayer
;
import
com.google.android.exoplayer.util.Util
;
import
android.media.AudioFormat
;
import
android.media.AudioFormat
;
import
android.media.MediaCodec
;
import
android.media.MediaCodec
;
import
android.media.MediaExtractor
;
import
android.media.MediaExtractor
;
...
@@ -73,6 +75,15 @@ public final class C {
...
@@ -73,6 +75,15 @@ public final class C {
public
static
final
int
ENCODING_DTS
=
7
;
public
static
final
int
ENCODING_DTS
=
7
;
public
static
final
int
ENCODING_DTS_HD
=
8
;
public
static
final
int
ENCODING_DTS_HD
=
8
;
// TODO: Change 6396 to AudioFormat.CHANNEL_OUT_7POINT1_SURROUND when the target API version is
// >= 23.
/**
* @see AudioFormat#CHANNEL_OUT_7POINT1_SURROUND
*/
@SuppressWarnings
({
"InlinedApi"
,
"deprecation"
})
public
static
final
int
CHANNEL_OUT_7POINT1_SURROUND
=
Util
.
SDK_INT
<
23
?
AudioFormat
.
CHANNEL_OUT_7POINT1
:
6396
;
/**
/**
* @see MediaExtractor#SAMPLE_FLAG_SYNC
* @see MediaExtractor#SAMPLE_FLAG_SYNC
*/
*/
...
...
library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java
View file @
80e829d7
...
@@ -398,7 +398,7 @@ public final class AudioTrack {
...
@@ -398,7 +398,7 @@ public final class AudioTrack {
channelConfig
=
AudioFormat
.
CHANNEL_OUT_5POINT1
;
channelConfig
=
AudioFormat
.
CHANNEL_OUT_5POINT1
;
break
;
break
;
case
8
:
case
8
:
channelConfig
=
AudioFormat
.
CHANNEL_OUT_7POINT1
;
channelConfig
=
C
.
CHANNEL_OUT_7POINT1_SURROUND
;
break
;
break
;
default
:
default
:
throw
new
IllegalArgumentException
(
"Unsupported channel count: "
+
channelCount
);
throw
new
IllegalArgumentException
(
"Unsupported channel count: "
+
channelCount
);
...
...
library/src/main/java/com/google/android/exoplayer/drm/StreamingDrmSessionManager.java
View file @
80e829d7
...
@@ -434,6 +434,7 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
...
@@ -434,6 +434,7 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
super
(
looper
);
super
(
looper
);
}
}
@SuppressWarnings
(
"deprecation"
)
@Override
@Override
public
void
handleMessage
(
Message
msg
)
{
public
void
handleMessage
(
Message
msg
)
{
if
(
openCount
==
0
||
(
state
!=
STATE_OPENED
&&
state
!=
STATE_OPENED_WITH_KEYS
))
{
if
(
openCount
==
0
||
(
state
!=
STATE_OPENED
&&
state
!=
STATE_OPENED_WITH_KEYS
))
{
...
...
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