am ea86b36f: Merge "Remove SEEK_CLOSEST constant from MediaExtractor, its implementation makes no" into jb-dev
* commit 'ea86b36f8087241dd898821fe29020e74b2c93d4': Remove SEEK_CLOSEST constant from MediaExtractor, its implementation makes no
This commit is contained in:
@@ -11236,7 +11236,6 @@ package android.media {
|
||||
method public void unselectTrack(int);
|
||||
field public static final int SAMPLE_FLAG_ENCRYPTED = 2; // 0x2
|
||||
field public static final int SAMPLE_FLAG_SYNC = 1; // 0x1
|
||||
field public static final int SEEK_TO_CLOSEST = 3; // 0x3
|
||||
field public static final int SEEK_TO_CLOSEST_SYNC = 2; // 0x2
|
||||
field public static final int SEEK_TO_NEXT_SYNC = 1; // 0x1
|
||||
field public static final int SEEK_TO_PREVIOUS_SYNC = 0; // 0x0
|
||||
|
||||
@@ -225,11 +225,6 @@ final public class MediaExtractor {
|
||||
* If possible, seek to the sync sample closest to the specified time
|
||||
*/
|
||||
public static final int SEEK_TO_CLOSEST_SYNC = 2;
|
||||
/**
|
||||
* If possible, seek to a sample closest to the specified time, which may
|
||||
* NOT be a sync sample!
|
||||
*/
|
||||
public static final int SEEK_TO_CLOSEST = 3;
|
||||
|
||||
/**
|
||||
* All selected tracks seek near the requested time according to the
|
||||
|
||||
@@ -313,7 +313,7 @@ static void android_media_MediaExtractor_seekTo(
|
||||
}
|
||||
|
||||
if (mode < MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC
|
||||
|| mode > MediaSource::ReadOptions::SEEK_CLOSEST) {
|
||||
|| mode >= MediaSource::ReadOptions::SEEK_CLOSEST) {
|
||||
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user