Skip to content
Snippets Groups Projects
Commit d5908994 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

LibVLC: Sanity check

(cherry picked from commit 910fbba2)
parent 539760f6
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,7 @@ class VideoHelper implements IVLCVout.OnNewVideoLayoutListener {
@TargetApi(Build.VERSION_CODES.N)
void updateVideoSurfaces() {
if (mMediaPlayer == null || mMediaPlayer.isReleased()) return;
final boolean isPrimary = mDisplayManager == null || mDisplayManager.isPrimary();
final Activity activity = isPrimary && mVideoSurfaceFrame.getContext() instanceof Activity ? (Activity) mVideoSurfaceFrame.getContext() : null;
......
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