Don't use "type" of source, use "id" of source
The naming here is a poor choice, a source type determines if a source is either a regular input, a filter, or a transition. The ID is the actual unique identifier of a source.
This commit is contained in:
parent
ab34864445
commit
e63ebdce91
2 changed files with 15 additions and 15 deletions
|
|
@ -29,7 +29,7 @@ class OBSBasicSourceSelect : public QDialog {
|
|||
|
||||
private:
|
||||
std::unique_ptr<Ui::OBSBasicSourceSelect> ui;
|
||||
const char *type;
|
||||
const char *id;
|
||||
|
||||
static bool EnumSources(void *data, obs_source_t source);
|
||||
|
||||
|
|
@ -44,5 +44,5 @@ private slots:
|
|||
void SourceRemoved(OBSSource source);
|
||||
|
||||
public:
|
||||
OBSBasicSourceSelect(OBSBasic *parent, const char *type);
|
||||
OBSBasicSourceSelect(OBSBasic *parent, const char *id);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue