Closed rjgtav closed 1 year ago
Unfortunately, this cannot be merged. The old behavior which would allow this to happen was undefined and not intended, and as of recently, we've changed the underlying libobs functions to deduplicate names automatically. As such, in both cases, this kind of change would produce behavior which is arguably unacceptable in an API like this.
Description
Allow re-creating an input/scene with the same name in case the previous instance has already been marked for deletion.
Motivation and Context
Deleting and re-creating an input or scene by using the same name, in consecutive requests, currently throws an "already exists", despite those items already being marked for deletion in OBS.
Here's the code snippet, using OBS Websocket's javascript bindings, for triggering the error:
How Has This Been Tested?
Tested OS(s): Debian 11
Types of changes
Checklist:
master
or arelease/*
branch.