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

LibVLC: Fix Displaymanager renderer detection

parent 5a8c6fa4
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,11 @@ public class DisplayManager {
mMediaRouter = (MediaRouter) activity.getApplicationContext().getSystemService(Context.MEDIA_ROUTER_SERVICE);
mTextureView = textureView;
mPresentation = !(cloneMode || benchmark) ? createPresentation() : null;
mDisplayType = benchmark ? DisplayType.PRIMARY : getCurrentType();
if (mSelectedRenderer != null) {
mSelectedRenderer.observeForever(mRendererObs);
mRendererItem = mSelectedRenderer.getValue();
}
mDisplayType = benchmark ? DisplayType.PRIMARY : getCurrentType();
}
public boolean isPrimary() {
......
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