Commit a9e93135 authored by Thomas Guillem's avatar 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 a113641e.
parent 166c46f8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment