Skip to content

Commit c5cbcb5

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Make seekTo not throw exceptions."
2 parents fe37aca + 2b9d6bd commit c5cbcb5

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)