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

Commit 7b55b8f0 authored by Alex Klyubin's avatar Alex Klyubin Committed by Android Git Automerger
Browse files

am c77c14c2: Merge "Make MediaPlayer fail fast on UnknownServiceException."

* commit 'c77c14c2':
  Make MediaPlayer fail fast on UnknownServiceException.
parents fea08ccd c77c14c2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.NoRouteToHostException;
import java.net.ProtocolException;
import java.net.UnknownServiceException;
import java.util.HashMap;
import java.util.Map;

@@ -337,6 +338,9 @@ public class MediaHTTPConnection extends IMediaHTTPConnection.Stub {
        } catch (NoRouteToHostException e) {
            Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
            return MEDIA_ERROR_UNSUPPORTED;
        } catch (UnknownServiceException e) {
            Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
            return MEDIA_ERROR_UNSUPPORTED;
        }catch (IOException e) {
            if (VERBOSE) {
                Log.d(TAG, "readAt " + offset + " / " + size + " => -1");