Commit 400882f3 authored by Thomas Guillem's avatar Thomas Guillem

VideoPlayer: stopPlayback if requestVisibleBehind fails

parent 948bdf5c
......@@ -544,8 +544,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
/* Stop the earliest possible to avoid vout error */
if (isFinishing())
stopPlayback();
else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
requestVisibleBehind(true);
else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !requestVisibleBehind(true))
stopPlayback();
}
@Override
......
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