mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-28 10:28:38 -04:00
(API Change) libobs: Remove source_type param from functions
(Note: test and UI are also modified by this commit) API Changed (removed "enum obs_source_type type" parameter): ------------------------- obs_source_get_display_name obs_source_create obs_get_source_output_flags obs_get_source_defaults obs_get_source_properties Removes the "type" parameter from these functions. The "type" parameter really doesn't serve much of a purpose being a parameter in any of these cases, the type is just to indicate what it's used for.
This commit is contained in:
@@ -129,8 +129,7 @@ bool AddNew(QWidget *parent, const char *id, const char *name,
|
||||
QTStr("NameExists.Text"));
|
||||
|
||||
} else {
|
||||
source = obs_source_create(OBS_SOURCE_TYPE_INPUT,
|
||||
id, name, NULL, nullptr);
|
||||
source = obs_source_create(id, name, NULL, nullptr);
|
||||
|
||||
if (source) {
|
||||
AddSourceData data;
|
||||
@@ -191,8 +190,7 @@ OBSBasicSourceSelect::OBSBasicSourceSelect(OBSBasic *parent, const char *id_)
|
||||
|
||||
ui->sourceList->setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
|
||||
QString placeHolderText{QT_UTF8(obs_source_get_display_name(
|
||||
OBS_SOURCE_TYPE_INPUT, id))};
|
||||
QString placeHolderText{QT_UTF8(obs_source_get_display_name(id))};
|
||||
|
||||
QString text{placeHolderText};
|
||||
int i = 1;
|
||||
|
||||
Reference in New Issue
Block a user