Loading media/java/android/media/MediaPlayer.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -1017,16 +1017,14 @@ public class MediaPlayer implements SubtitleController.Listener setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength()); setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength()); } } return; return; } catch (SecurityException ex) { } catch (SecurityException | IOException ex) { } catch (IOException ex) { Log.w(TAG, "Couldn't open file on client side; trying server side: " + ex); } finally { } finally { if (fd != null) { if (fd != null) { fd.close(); fd.close(); } } } } Log.d(TAG, "Couldn't open file on client side, trying server side"); setDataSource(uri.toString(), headers); setDataSource(uri.toString(), headers); } } Loading Loading
media/java/android/media/MediaPlayer.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -1017,16 +1017,14 @@ public class MediaPlayer implements SubtitleController.Listener setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength()); setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength()); } } return; return; } catch (SecurityException ex) { } catch (SecurityException | IOException ex) { } catch (IOException ex) { Log.w(TAG, "Couldn't open file on client side; trying server side: " + ex); } finally { } finally { if (fd != null) { if (fd != null) { fd.close(); fd.close(); } } } } Log.d(TAG, "Couldn't open file on client side, trying server side"); setDataSource(uri.toString(), headers); setDataSource(uri.toString(), headers); } } Loading