Loading media/java/android/media/MediaPlayer.java +8 −4 Original line number Diff line number Diff line Loading @@ -2243,11 +2243,15 @@ public class MediaPlayer implements SubtitleController.Listener final InputStream fIs = is; final MediaFormat fFormat = format; if (is != null) { // Ensure all input streams are closed. It is also a handy // way to implement timeouts in the future. synchronized(mOpenSubtitleSources) { mOpenSubtitleSources.add(is); } } else { Log.w(TAG, "addSubtitleSource called with null InputStream"); } // process each subtitle in its own thread final HandlerThread thread = new HandlerThread("SubtitleReadThread", Loading Loading
media/java/android/media/MediaPlayer.java +8 −4 Original line number Diff line number Diff line Loading @@ -2243,11 +2243,15 @@ public class MediaPlayer implements SubtitleController.Listener final InputStream fIs = is; final MediaFormat fFormat = format; if (is != null) { // Ensure all input streams are closed. It is also a handy // way to implement timeouts in the future. synchronized(mOpenSubtitleSources) { mOpenSubtitleSources.add(is); } } else { Log.w(TAG, "addSubtitleSource called with null InputStream"); } // process each subtitle in its own thread final HandlerThread thread = new HandlerThread("SubtitleReadThread", Loading