Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1973189f authored by Robert Shih's avatar Robert Shih
Browse files

MediaPlayer: clean up subtitle controller log spam

- create a default SubtitleController if not set explicitly
- log warning instead of error

Bug: 17594306
Change-Id: Ie7084205b3555bdfec0a2940d0e56398f778585a
parent 18f84162
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2270,8 +2270,8 @@ public class MediaPlayer implements SubtitleController.Listener

    private void scanInternalSubtitleTracks() {
        if (mSubtitleController == null) {
            Log.e(TAG, "Should have subtitle controller already set");
            return;
            Log.w(TAG, "setSubtitleAnchor in MediaPlayer");
            setSubtitleAnchor();
        }

        TrackInfo[] tracks = getInbandTrackInfo();