From e4650b7ee266d4f541bdad9f9260924cdb5febb9 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Thu, 20 May 2021 01:32:53 +0200 Subject: [PATCH] revert static instance --- Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs b/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs index 17de1a03a..31f37ca00 100644 --- a/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs +++ b/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs @@ -16,6 +16,8 @@ namespace Ryujinx.Graphics.Nvdec.H264 public FFmpegContext() { + SetRootPath(); + _logFunc = Log; // Redirect log output @@ -30,12 +32,7 @@ namespace Ryujinx.Graphics.Nvdec.H264 _packet = ffmpeg.av_packet_alloc(); } - static FFmpegContext() - { - SetRootPath(); - } - - private static void SetRootPath() + private void SetRootPath() { if (OperatingSystem.IsLinux()) {