未验证 提交 c63e841e 编写于 作者: J Jérôme Laban 提交者: GitHub

Merge pull request #12519 from unoplatform/dev/jela/skia-null-ref

fix(mpe): fix for macOS failure on not available player
......@@ -233,7 +233,12 @@ namespace Uno.UI.Media
if (_videoWindow is null)
{
throw new InvalidOperationException($"_videoWindow cannot be null");
if (this.Log().IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
{
this.Log().Debug($"{GetHashCode():X8} Skipping AttachToWidget (no video window available)");
}
return;
}
// Reparent the window to the current window, so it appears inside, positioned outside the bounds of the window
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册