MediaSession: Fix a crash when calling seekTo(0) on debug build
Currently, the MediaSession.seekTo() in Java allows 0, but the JNI implementation doesn't allow 0. According to the method's description[1], it allows non-negative numbers. So, the JNI code should allow 0 as well. This issue was discovered while testing in downstream code. [1] https://source.chromium.org/chromium/chromium/src/+/master:content/public/android/java/src/org/chromium/content_public/browser/MediaSession.java;l=59 Bug: none Change-Id: I68481c484f40bd28259a98dd553c42ed3855e4ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519633Reviewed-by:Becca Hughes <beccahughes@chromium.org> Commit-Queue: Jinho Bang <jinho.bang@samsung.com> Cr-Commit-Position: refs/heads/master@{#824151}
Showing
Please register or sign in to comment