mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 03:06:29 +08:00
Revert attempt to ARM64 VideoViewer
This commit is contained in:
@@ -22,7 +22,6 @@ using QuickLook.Common.Plugin;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
namespace QuickLook.Plugin.VideoViewer;
|
||||
@@ -32,7 +31,6 @@ public sealed class Plugin : IViewer
|
||||
private static MediaInfoLib _mediaInfo;
|
||||
|
||||
private ViewerPanel _vp;
|
||||
private static readonly bool isArm64 = RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
|
||||
|
||||
public int Priority => -3;
|
||||
|
||||
@@ -40,7 +38,7 @@ public sealed class Plugin : IViewer
|
||||
{
|
||||
_mediaInfo = new MediaInfoLib(Path.Combine(
|
||||
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||
isArm64 ? @"MediaInfo-arm64\" : Environment.Is64BitProcess ? @"MediaInfo-x64\" : @"MediaInfo-x86\"));
|
||||
Environment.Is64BitProcess ? @"MediaInfo-x64\" : @"MediaInfo-x86\"));
|
||||
_mediaInfo.Option("Cover_Data", "base64");
|
||||
}
|
||||
|
||||
@@ -130,10 +128,8 @@ public sealed class Plugin : IViewer
|
||||
context.ViewerContent = _vp;
|
||||
|
||||
context.Title = $"{Path.GetFileName(path)}";
|
||||
if (isArm64)
|
||||
_vp.LoadAndPlayWPF(path, _mediaInfo);
|
||||
else
|
||||
_vp.LoadAndPlay(path, _mediaInfo);
|
||||
|
||||
_vp.LoadAndPlay(path, _mediaInfo);
|
||||
}
|
||||
|
||||
public void Cleanup()
|
||||
|
||||
Reference in New Issue
Block a user