Skip to content
Snippets Groups Projects
Commit 3759b70d authored by Duncan McNamara's avatar Duncan McNamara Committed by Geoffrey Métais
Browse files

VideoPlayer: fix fit_screen when no video track


Signed-off-by: default avatarGeoffrey Métais <geoffrey.metais@gmail.com>
parent 9db389d6
No related branches found
No related tags found
No related merge requests found
......@@ -1642,6 +1642,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
case MediaPlayer.Event.ESSelected:
if (event.getEsChangedType() == Media.VideoTrack.Type.Video) {
Media.VideoTrack vt = mService.getCurrentVideoTrack();
changeSurfaceLayout();
if (vt != null)
mFov = vt.projection == Media.VideoTrack.Projection.Rectangular ? 0f : DEFAULT_FOV;
}
......
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