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

Unset any renderer on disconnection

(cherry picked from commit dc8fbd5c)
parent 3d7f476b
No related branches found
Tags libvlc-3.3.0-eap9
No related merge requests found
......@@ -242,6 +242,10 @@ public class ContentActivity extends AudioPlayerContainerActivity implements Sea
@Override
public void onRenderersChanged(boolean empty) {
showRenderers = !empty;
if (empty && !AndroidDevices.isChromeBook) {
RendererDelegate.INSTANCE.selectRenderer(null);
if (mService != null) mService.setRenderer(null);
}
supportInvalidateOptionsMenu();
}
......
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