videonalaysis: refactor to avoid holding onto generators

This commit is contained in:
Koushik Dutta
2023-04-22 08:16:34 -07:00
parent 1929f6e8ed
commit 154ab42d15
5 changed files with 41 additions and 34 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.40",
"version": "0.1.41",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/python-codecs",
"version": "0.1.40",
"version": "0.1.41",
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.40",
"version": "0.1.41",
"description": "Python Codecs for Scrypted",
"keywords": [
"scrypted",

View File

@@ -30,6 +30,8 @@ async def createPipelineIterator(pipeline: str):
elif t == str(Gst.MessageType.WARNING):
err, debug = message.parse_warning()
print('Warning: %s: %s\n' % (err, debug))
print('Ending stream due to warning. If this camera is causing errors, switch to the libav decoder.');
finish();
elif t == str(Gst.MessageType.ERROR):
err, debug = message.parse_error()
print('Error: %s: %s\n' % (err, debug))