Skip to content

Commit 2b9d6bd

Browse files
committed
Make seekTo not throw exceptions.
Change-Id: I9d0469962364b86fbab920e9ac65f468fc630737 related-to-bug: 6276111
1 parent 3844067 commit 2b9d6bd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

media/jni/android_media_MediaExtractor.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,7 @@ static void android_media_MediaExtractor_seekTo(
257257
return;
258258
}
259259

260-
status_t err = extractor->seekTo(timeUs);
261-
262-
if (err != OK) {
263-
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
264-
return;
265-
}
260+
extractor->seekTo(timeUs);
266261
}
267262

268263
static jboolean android_media_MediaExtractor_advance(

0 commit comments

Comments
 (0)