Skip to content
Snippets Groups Projects
Commit 1bdfb81a authored by Thomas Guillem's avatar Thomas Guillem
Browse files

LibVLC: MediaPlayer: don't wait for vout deletion

MediaPlayer.stop() is enough to ensure that the surface  won't be used anymore.
parent 1891bbe4
No related branches found
No related tags found
No related merge requests found
......@@ -358,17 +358,6 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
}
if (disableVideo)
setVideoTrackEnabled(false);
synchronized (MediaPlayer.this) {
/* Wait for Vout destruction (mVoutCount = 0) in order to be sure that the surface is not
* used after leaving this callback. This shouldn't be needed when using MediaCodec or
* AndroidWindow (i.e. after Android 2.3) since the surface is ref-counted */
while (mVoutCount > 0) {
try {
MediaPlayer.this.wait();
} catch (InterruptedException ignored) {
}
}
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment