mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs: Change return type for getting filter index
This changes the return type for getting the filter index from a size_t to an int. This makes it easier for developers to use, as an invalid index just returns a -1.
This commit is contained in:
@@ -1281,7 +1281,7 @@ void OBSBasicFilters::FiltersMoved(const QModelIndex &, int srcIdxStart, int,
|
||||
neighborIdx = 0;
|
||||
|
||||
OBSSource neighbor = GetFilter(neighborIdx, isAsync);
|
||||
size_t idx = obs_source_filter_get_index(source, neighbor);
|
||||
int idx = obs_source_filter_get_index(source, neighbor);
|
||||
|
||||
OBSSource filter = GetFilter(list->currentRow(), isAsync);
|
||||
obs_source_filter_set_index(source, filter, idx);
|
||||
|
||||
Reference in New Issue
Block a user