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

Commit 71780e79 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Better logging of MediaPlayer failure reason." into mnc-dev

parents 698250fa 4fa85b7c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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);
    }