Call GStreamer.Init() from onCreate(), otherwise the Context is not set up yet

This commit is contained in:
Sebastian Dröge 2012-09-20 11:11:23 +02:00
parent 2baed2a80c
commit 56e49fac4e

View file

@ -52,7 +52,6 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSee
public Tutorial1() { public Tutorial1() {
super(); super();
GStreamer.Init(this);
} }
/* Called when the activity is first created. /* Called when the activity is first created.
@ -61,6 +60,8 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSee
{ {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
GStreamer.Init(this);
setContentView(R.layout.main); setContentView(R.layout.main);
ImageButton play = (ImageButton) this.findViewById(R.id.button_play); ImageButton play = (ImageButton) this.findViewById(R.id.button_play);