mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 15:36:35 +00:00
Play.java: Don't lookup R.id.surface_video twice.
R.id.surface_video was stored in the gsv variable just above, don't look it up a second time.
This commit is contained in:
parent
0436ec5b1c
commit
1116ae85e2
1 changed files with 1 additions and 2 deletions
|
@ -126,8 +126,7 @@ public class Play extends Activity implements SurfaceHolder.Callback, OnSeekBarC
|
|||
}
|
||||
});
|
||||
|
||||
SurfaceView sv = (SurfaceView) this.findViewById(R.id.surface_video);
|
||||
SurfaceHolder sh = sv.getHolder();
|
||||
SurfaceHolder sh = gsv.getHolder();
|
||||
sh.addCallback(this);
|
||||
|
||||
String mediaUri = null;
|
||||
|
|
Loading…
Reference in a new issue