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
15052052
authored
Sep 28, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Clean up TrackRenderer TODOs
parent
b81ac8cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
library/src/main/java/com/google/android/exoplayer/TrackRenderer.java
library/src/main/java/com/google/android/exoplayer/TrackRenderer.java
View file @
15052052
...
...
@@ -132,10 +132,7 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
*
* @return The number of tracks.
*/
// TODO: This method should be abstract. This implementation is provided as an interim step only.
protected
int
getTrackCount
()
{
return
1
;
}
protected
abstract
int
getTrackCount
();
/**
* Returns the format of the specified track.
...
...
@@ -146,11 +143,7 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
* @param track The track index.
* @return The format of the specified track.
*/
// TODO: This method should be abstract. This implementation is provided as an interim step only.
protected
MediaFormat
getFormat
(
int
track
)
{
return
MediaFormat
.
createFormatForMimeType
(
"application/octet-stream"
,
MediaFormat
.
NO_VALUE
,
getDurationUs
());
}
protected
abstract
MediaFormat
getFormat
(
int
track
);
/**
* Enable the renderer for a specified track.
...
...
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