[Android] Http DL: Use default port if none is set

Geoffrey Métais git at videolan.org
Fri Sep 1 17:40:02 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Sep  1 17:37:25 2017 +0200| [e26f23fd9ff64a925a08c902803f8435180660a1] | committer: Geoffrey Métais

Http DL: Use default port if none is set

> https://code.videolan.org/videolan/vlc-android/commit/e26f23fd9ff64a925a08c902803f8435180660a1
---

 vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java b/vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java
index 25cf9e413..ad371d8ab 100644
--- a/vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java
+++ b/vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java
@@ -113,8 +113,6 @@ public class HttpImageLoader implements Callbacks {
             return icon;
         try {
             URL url = new URL(imageUrl);
-            if (url.getPort() <= 0)
-                return null;
             urlConnection = (HttpURLConnection) url.openConnection();
             InputStream in = new BufferedInputStream(urlConnection.getInputStream());
             icon = BitmapFactory.decodeStream(in);



More information about the Android mailing list