[Android] VideoPlayerActivity: cosmetic touches

Edward Wang git at videolan.org
Thu Jul 10 18:36:48 CEST 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Jul 10 12:34:26 2014 -0400| [cfa7ca76b5906cc0b653b6e43066c2aead12886e] | committer: Edward Wang

VideoPlayerActivity: cosmetic touches

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=cfa7ca76b5906cc0b653b6e43066c2aead12886e
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java      |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 133776e..ac3bdc0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1876,7 +1876,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                     try {
                         mLocation = URLDecoder.decode(mLocation,"UTF-8");
                     } catch (UnsupportedEncodingException e) {
-                        e.printStackTrace();
+                        Log.w(TAG, "UnsupportedEncodingException while decoding MRL " + mLocation);
                     }
                 }
             } else {
@@ -1901,11 +1901,11 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
 
         mSurface.setKeepScreenOn(true);
 
-        if( mLibVLC == null)
+        if(mLibVLC == null)
             return;
 
         /* WARNING: hack to avoid a crash in mediacodec on KitKat.
-         * Disable the hardware acceleration the media has a ts extension. */
+         * Disable hardware acceleration if the media has a ts extension. */
         if (mLocation != null && LibVlcUtil.isKitKatOrLater()) {
             String locationLC = mLocation.toLowerCase(Locale.ENGLISH);
             if (locationLC.endsWith(".ts")



More information about the Android mailing list