Commit f36f9b4d authored by Geoffrey Métais's avatar Geoffrey Métais

LibVLC: Fix Displaymanager renderer detection

parent 5a8c6fa4
......@@ -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() {
......
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