Maxwell Katz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
src/Avalonia.Base/Media/MediaContext.Compositor.cs
|
|
@ -5,6 +5,7 @@ using Avalonia.Platform; |
|
|
using Avalonia.Rendering.Composition; |
|
|
using Avalonia.Rendering.Composition; |
|
|
using Avalonia.Rendering.Composition.Transport; |
|
|
using Avalonia.Rendering.Composition.Transport; |
|
|
using Avalonia.Threading; |
|
|
using Avalonia.Threading; |
|
|
|
|
|
using Avalonia.Utilities; |
|
|
|
|
|
|
|
|
namespace Avalonia.Media; |
|
|
namespace Avalonia.Media; |
|
|
|
|
|
|
|
|
@ -97,6 +98,7 @@ partial class MediaContext |
|
|
if (AvaloniaLocator.Current.GetService<IPlatformRenderInterface>() == null) |
|
|
if (AvaloniaLocator.Current.GetService<IPlatformRenderInterface>() == null) |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
using var _ = NonPumpingLockHelper.Use(); |
|
|
if (compositor is |
|
|
if (compositor is |
|
|
{ |
|
|
{ |
|
|
UseUiThreadForSynchronousCommits: false, |
|
|
UseUiThreadForSynchronousCommits: false, |
|
|
|