(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:
jp9000
2015-12-29 15:25:45 -08:00
parent 20db7649aa
commit b0104fcee0
12 changed files with 55 additions and 98 deletions

View File

@@ -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;