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
40411269
authored
Feb 13, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use C.SAMPLE_FLAG_SYNC
parent
9d480ecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
library/src/main/java/com/google/android/exoplayer/hls/parser/RollingSampleBuffer.java
library/src/main/java/com/google/android/exoplayer/hls/parser/RollingSampleBuffer.java
View file @
40411269
...
...
@@ -15,14 +15,12 @@
*/
package
com
.
google
.
android
.
exoplayer
.
hls
.
parser
;
import
com.google.android.exoplayer.C
;
import
com.google.android.exoplayer.SampleHolder
;
import
com.google.android.exoplayer.upstream.BufferPool
;
import
com.google.android.exoplayer.util.Assertions
;
import
com.google.android.exoplayer.util.ParsableByteArray
;
import
android.annotation.SuppressLint
;
import
android.media.MediaExtractor
;
import
java.nio.ByteBuffer
;
import
java.util.concurrent.ConcurrentLinkedQueue
;
...
...
@@ -182,12 +180,11 @@ import java.util.concurrent.ConcurrentLinkedQueue;
* @param offset The offset of the first byte after the end of the sample's data, relative to
* the total number of bytes written to the buffer. Must be negative or zero.
*/
@SuppressLint
(
"InlinedApi"
)
public
void
commitSample
(
boolean
isKeyframe
,
int
offset
)
{
Assertions
.
checkState
(
offset
<=
0
);
int
sampleSize
=
(
int
)
(
totalBytesWritten
+
offset
-
pendingSampleOffset
);
infoQueue
.
commitSample
(
pendingSampleTimeUs
,
pendingSampleOffset
,
sampleSize
,
isKeyframe
?
MediaExtractor
.
SAMPLE_FLAG_SYNC
:
0
);
isKeyframe
?
C
.
SAMPLE_FLAG_SYNC
:
0
);
}
/**
...
...
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