[Android] Revert "VideoPlayerActiviry: fix a glitch when loading a	video"
    Thomas Guillem 
    git at videolan.org
       
    Fri May 27 16:57:26 CEST 2016
    
    
  
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 27 16:49:13 2016 +0200| [a9e9313560813822f63fd9400ac229d6ac436172] | committer: Thomas Guillem
Revert "VideoPlayerActiviry: fix a glitch when loading a video"
Grah, this is not working on Nexus Player on Android N.
This reverts commit a113641ede5698069b6c83bc602b6ec08efc7e9d.
> https://code.videolan.org/videolan/vlc-android/commit/a9e9313560813822f63fd9400ac229d6ac436172
---
 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       | 8 --------
 1 file changed, 8 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 b147f90..55374e8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -34,7 +34,6 @@ import android.content.SharedPreferences.Editor;
 import android.content.pm.ActivityInfo;
 import android.content.pm.PackageManager;
 import android.content.res.Configuration;
-import android.graphics.Canvas;
 import android.graphics.Color;
 import android.graphics.PixelFormat;
 import android.media.AudioManager;
@@ -440,8 +439,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mPlaybackSettingMinus = (ImageView) findViewById(R.id.player_delay_minus);
 
         mSurfaceView = (SurfaceView) findViewById(R.id.player_surface);
-        mSurfaceView.getHolder().setFixedSize(1, 1);
-        mSurfaceView.getHolder().setFormat(PixelFormat.RGB_565);
         mSubtitlesSurfaceView = (SurfaceView) findViewById(R.id.subtitles_surface);
 
         if (HWDecoderUtil.HAS_SUBTITLES_SURFACE) {
@@ -3397,11 +3394,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
     @Override
     public void onSurfacesCreated(IVLCVout vlcVout) {
-        /* Initialize the surface to black in order to avoid a glitch when a displaying
-         * an old or uninitialized frame */
-        final Canvas c = mSurfaceView.getHolder().lockCanvas();
-        c.drawRGB(0, 0, 0);
-        mSurfaceView.getHolder().unlockCanvasAndPost(c);
     }
 
     @Override
    
    
More information about the Android
mailing list