Give the default media size a 4:3 aspect ratio. This will make the tutorial look right, but it is not a fix for the first frame jumping into position.

This commit is contained in:
Xavi Artigas 2012-10-19 14:05:41 +02:00
parent e8010b654f
commit 3cfa87cbb7

View file

@ -8,8 +8,8 @@ import android.view.View;
// A simple SurfaceView whose width and height is set from the outside // A simple SurfaceView whose width and height is set from the outside
public class GStreamerSurfaceView extends SurfaceView { public class GStreamerSurfaceView extends SurfaceView {
public int media_width = 100; // Default values, only really meaningful for the layout editor in Eclipse public int media_width = 320; // Default values, only really meaningful for the layout editor in Eclipse
public int media_height = 100; public int media_height = 240;
// Mandatory constructors, they do not do much // Mandatory constructors, they do not do much
public GStreamerSurfaceView(Context context, AttributeSet attrs, public GStreamerSurfaceView(Context context, AttributeSet attrs,