mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
Better placement of the last_folder initialization.
This commit is contained in:
parent
b0282e731f
commit
c09f277be7
1 changed files with 1 additions and 2 deletions
|
@ -68,8 +68,6 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
|
||||
setContentView(R.layout.main);
|
||||
|
||||
last_folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getAbsolutePath();
|
||||
|
||||
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
|
||||
wake_lock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "GStreamer tutorial 5");
|
||||
wake_lock.setReferenceCounted(false);
|
||||
|
@ -119,6 +117,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
} else {
|
||||
is_playing_desired = false;
|
||||
position = duration = 0;
|
||||
last_folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getAbsolutePath();
|
||||
Intent intent = getIntent();
|
||||
android.net.Uri uri = intent.getData();
|
||||
if (uri == null)
|
||||
|
|
Loading…
Reference in a new issue