mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
Call GStreamer.Init() from onCreate(), otherwise the Context is not set up yet
This commit is contained in:
parent
2baed2a80c
commit
56e49fac4e
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,6 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
|
||||
public Tutorial1() {
|
||||
super();
|
||||
GStreamer.Init(this);
|
||||
}
|
||||
|
||||
/* Called when the activity is first created.
|
||||
|
@ -61,6 +60,8 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
GStreamer.Init(this);
|
||||
|
||||
setContentView(R.layout.main);
|
||||
|
||||
ImageButton play = (ImageButton) this.findViewById(R.id.button_play);
|
||||
|
|
Loading…
Reference in a new issue