mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
Prevent successive orientation changes from moving the clip backwards in time due to gst-nanos / java-millis rounding errors plus seeking to keyframes.
This commit is contained in:
parent
44a46337d7
commit
803622382e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
playing = savedInstanceState.getBoolean("playing");
|
||||
int milliseconds = savedInstanceState.getInt("position");
|
||||
Log.i ("GStreamer", "Restoring state, playing:" + playing + " position:" + milliseconds + " ms.");
|
||||
nativeSetPosition(milliseconds);
|
||||
nativeSetPosition(milliseconds + 1);
|
||||
if (playing) {
|
||||
nativePlay();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue