replace structuredClone which is not always present

This commit is contained in:
Théo Le Calvar 2023-05-21 11:30:50 +02:00
parent 90226f2689
commit 23fc1c667e
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "peertube-plugin-hardware-transcode-vaapi", "name": "peertube-plugin-hardware-transcode-vaapi",
"version": "0.2.8", "version": "0.2.9",
"license": "MIT", "license": "MIT",
"description": "Plugin that adds transcode profiles which use vaapi for hardware acceleration", "description": "Plugin that adds transcode profiles which use vaapi for hardware acceleration",
"engine": { "engine": {

View File

@ -26,7 +26,7 @@ interface PluginSettings {
let pluginSettings : PluginSettings = { let pluginSettings : PluginSettings = {
hardwareDecode: DEFAULT_HARDWARE_DECODE, hardwareDecode: DEFAULT_HARDWARE_DECODE,
quality: DEFAULT_QUALITY, quality: DEFAULT_QUALITY,
baseBitrate: structuredClone(DEFAULT_BITRATES) baseBitrate: new Map(DEFAULT_BITRATES)
} }
let latestStreamNum = 9999 let latestStreamNum = 9999