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

LibVLC: speed up video track transition

parent cd95e500
No related branches found
No related tags found
No related merge requests found
......@@ -578,6 +578,13 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
for (MediaPlayer.TrackDescription track : tracks) {
if (track.id != -1) {
setVideoTrack(track.id);
/* HACK: flush when activating a video track. This will force an
* I-Frame to be displayed right away. */
if (isSeekable()) {
long time = getTime();
if (time > 0)
setTime(time);
}
break;
}
}
......
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