diff --git a/package.json b/package.json index 29a439b..5308b02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-hardware-transcode-vaapi", - "version": "0.2.8", + "version": "0.2.9", "license": "MIT", "description": "Plugin that adds transcode profiles which use vaapi for hardware acceleration", "engine": { diff --git a/src/main.ts b/src/main.ts index 43b984f..1f5a6e1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,7 @@ interface PluginSettings { let pluginSettings : PluginSettings = { hardwareDecode: DEFAULT_HARDWARE_DECODE, quality: DEFAULT_QUALITY, - baseBitrate: structuredClone(DEFAULT_BITRATES) + baseBitrate: new Map(DEFAULT_BITRATES) } let latestStreamNum = 9999