diff --git a/InfoPanel/InfoPanel.csproj b/InfoPanel/InfoPanel.csproj index 6bafb81..8026b42 100644 --- a/InfoPanel/InfoPanel.csproj +++ b/InfoPanel/InfoPanel.csproj @@ -209,7 +209,7 @@ - Never + Always d2dlib64.dll diff --git a/InfoPanel/Views/DisplayWindow.xaml.cs b/InfoPanel/Views/DisplayWindow.xaml.cs index 1c59736..f9b4a09 100644 --- a/InfoPanel/Views/DisplayWindow.xaml.cs +++ b/InfoPanel/Views/DisplayWindow.xaml.cs @@ -33,8 +33,8 @@ public partial class DisplayWindow : D2DWindow private readonly DispatcherTimer ResizeTimer; public WriteableBitmap? WriteableBitmap; - private MediaTimeline mediaTimeline; - private MediaClock mediaClock; + private MediaTimeline? mediaTimeline; + private MediaClock? mediaClock; public DisplayWindow(Profile profile) : base(profile.Direct2DMode) { @@ -583,7 +583,7 @@ private async void Window_Loaded(object sender, RoutedEventArgs e) if (!Profile.Direct2DMode && Profile.VideoBackgroundFilePath is string filePath) { var videoFilePath = FileUtil.GetRelativeAssetPath(Profile, filePath); - LoadVideoBackground(videoFilePath); + await LoadVideoBackground(videoFilePath); } }