OSDN Git Service

MediaPlayer2: fix out-of-order pause for skipToNext
authorWei Jia <wjia@google.com>
Wed, 10 Apr 2019 17:49:10 +0000 (10:49 -0700)
committerWei Jia <wjia@google.com>
Wed, 10 Apr 2019 18:04:09 +0000 (11:04 -0700)
Test: cts
Bug: 130292355
Change-Id: I46765403e6bb12feb44f6d2541dc867fef23722a

media/apex/java/android/media/MediaPlayer2.java

index db33e82..72c18f6 100644 (file)
@@ -546,7 +546,7 @@ public class MediaPlayer2 implements AutoCloseable, AudioRouting {
             @Override
             void process() {
                 if (getState() == PLAYER_STATE_PLAYING) {
-                    pause();
+                    native_pause();
                 }
                 playNextDataSource();
             }