From 290b73f3d9e4446dfc910d2353237e61650e65ab Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 17 Mar 2023 23:42:33 -0700 Subject: [PATCH] python-codecs: fix hw acceleration --- plugins/python-codecs/package-lock.json | 4 ++-- plugins/python-codecs/package.json | 2 +- plugins/python-codecs/src/vips.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/python-codecs/package-lock.json b/plugins/python-codecs/package-lock.json index 614541df6..607d5304e 100644 --- a/plugins/python-codecs/package-lock.json +++ b/plugins/python-codecs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.9", + "version": "0.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/python-codecs", - "version": "0.1.9", + "version": "0.1.11", "devDependencies": { "@scrypted/sdk": "file:../../sdk" } diff --git a/plugins/python-codecs/package.json b/plugins/python-codecs/package.json index eb7c0e44f..e77847a46 100644 --- a/plugins/python-codecs/package.json +++ b/plugins/python-codecs/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.9", + "version": "0.1.11", "description": "Python Codecs for Scrypted", "keywords": [ "scrypted", diff --git a/plugins/python-codecs/src/vips.py b/plugins/python-codecs/src/vips.py index 8244eb785..e27d4b155 100644 --- a/plugins/python-codecs/src/vips.py +++ b/plugins/python-codecs/src/vips.py @@ -89,7 +89,7 @@ async def createVipsMediaObject(image: VipsImage): return ret class ImageReader(scrypted_sdk.ScryptedDeviceBase, scrypted_sdk.BufferConverter): - def __init__(self, nativeId: str | None = None): + def __init__(self, nativeId: str): super().__init__(nativeId) self.fromMimeType = 'image/*' @@ -100,7 +100,7 @@ class ImageReader(scrypted_sdk.ScryptedDeviceBase, scrypted_sdk.BufferConverter) return await createVipsMediaObject(VipsImage(vips)) class ImageWriter(scrypted_sdk.ScryptedDeviceBase, scrypted_sdk.BufferConverter): - def __init__(self, nativeId: str | None = None): + def __init__(self, nativeId: str): super().__init__(nativeId) self.fromMimeType = scrypted_sdk.ScryptedMimeTypes.Image.value