am f14e4435: am 0fa2a56c: am 71780e79: Merge "Better logging of MediaPlayer failure reason." into mnc-dev
* commit 'f14e4435e02c1cf058d475a389abae3000562190': Better logging of MediaPlayer failure reason.
This commit is contained in:
@@ -1017,16 +1017,14 @@ public class MediaPlayer implements SubtitleController.Listener
|
||||
setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength());
|
||||
}
|
||||
return;
|
||||
} catch (SecurityException ex) {
|
||||
} catch (IOException ex) {
|
||||
} catch (SecurityException | IOException ex) {
|
||||
Log.w(TAG, "Couldn't open file on client side; trying server side: " + ex);
|
||||
} finally {
|
||||
if (fd != null) {
|
||||
fd.close();
|
||||
}
|
||||
}
|
||||
|
||||
Log.d(TAG, "Couldn't open file on client side, trying server side");
|
||||
|
||||
setDataSource(uri.toString(), headers);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user