Commit d3a04d1c authored by Thomas Guillem's avatar Thomas Guillem

LibVLC: speed up video track transition

parent cd95e500
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment